Dear Stata specialists,
I have seen the description of -rcsgen- on Paul Lambert's blog, stating that "The rcsgen command generates basis function for restricted cubic splines. The command is used by my stpm2 command to fit flexible parameric survival models.".
I was wondering what's the actual relationship between -rcsgen- and -stpm2-? Does -rcsgen- always be followed by -stpm2- (Or can -stpm2- work without -rcsgen-)?
(Some brief info about my study and data if you'd like to refer to:
I'm trying to use flexible parametric model to estimate Hazard ratio over time (at 1 year, 5 years and 10 years after start of follow up) and visualize HR change over time using survival data.
outcome: development of CVD (0/1)
main exposure: RA (0/1)
covariates: age (continuous), sex (0/1), region (categorical noted by 0-20)
censoring: death during follow-up, emigration during follow-up or end of study (0/1)
follow-up time: in years (from diagnosis of RA to development of CVD or censoring) )
Thank you in advance!
Best,
Z.
Related Posts with What's the relationship between -rcsgen- and -stpm2-?
how to create a categorical dummy from a group of dummy variablesHi everyone, I want to create a categorical dummy called Engagement, which should take its values f…
Specification of Known Latent Classes using gsem lclassDear StataList, I am using Stata 14 on a Mac OS Yosemite 10.10.5. I am trying to use gsem to weight…
Invalid syntax; not obvious what is wrong.Dear All, I have a 7 year state panel of US states: Code: Code: * Example generated by -dataex-. …
Create new variable with new data in current datasetHi I have seen many posts with similar questions, but not one that I think completely fits my proble…
Help converting time series data to panel dataDear Members, I hope you could help me with the following problem, I have an dataset which contains…
Subscribe to:
Post Comments (Atom)
0 Response to What's the relationship between -rcsgen- and -stpm2-?
Post a Comment