Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Using time varying covariates

    Hi I thought I'd use this forum again

    I performed a Cox analysis on: If allied health professional performing specific operations using an orthopaedic implant have better outcomes if they do more of these interventions

    Code:
    stcox var1 var2 var3 gender, nohr
    I then wanted to assess PH - so I got a GOF using phtest, plotted scaled schoefield.

    The only variable that didn't satisfy PH was gender (graph of schoefield residuals seen in this post)
    https://www.statalist.org/forums/for...esiduals-graph

    I then introduced a time varying covariate option

    Code:
    stcox var1 var2 var3, tvc(gender) nohr
    estimate storem1
    stcox var1 var2 var3 gender, nohr //original
    lrtest (storem1) //significant
    Measured gof, scaled schoefeld - and PH were satisfied..... hurrah!

    However, rather than just performing Statistical tests I like to understand what's going on. Here are a couple of questions

    My question:
    1.How would one interpret introducing a time varying option for PH in a orthopaedic implant model
    Is it the risk of failure for each gender varies over time ? - I've just been through 77 pages of PUB med results to try explain this

    2. I know it's possible to plot this graph with R, is it possible to do so with STATA?:
    Click image for larger version

Name:	Screenshot 2023-09-03 at 17.11.24.png
Views:	1
Size:	661.9 KB
ID:	1725880



    2. According to Modelling Survival Data by Terry tHERNEAU - Chapter 6.5
    He gives two option to either stratify or introduce a TVC.

    I'm not sure which option is better.
    I know that by stratification, the model is generated from the non-stratified variables and the variable gender is not used as a regressor.
    Can anyone expand on this? -

    Just trying to full understand what I'm doing.
    I'm sure there are people on here who can explain this better, hopefully there are some stats people around...


    Last edited by Rose Matthews; 03 Sep 2023, 10:33.

  • #2
    Hi can anyone help with a timevarying covariate graph ?

    Comment

    Working...
    X