Hi there,
I am running some cox regression analyses and want to estimate the explained variance with the str2ph and str2d command.
It works with the following: str2ph stcox var1 var2
However, my Cox model looks like this: str2ph stcox var1 var2 i.var3 i.var4
my error message is: factor-variable and time-series operators not allowed
is there a work-around so that I can incorporate my factor-variables in the model?
thank you!
kind regards Jessy
Related Posts with explained variance cox regression str2ph str2d with factor variables
Two - step dynamic panel GMM estimator weight Matrix returning blank value after Mata loopHey guys, I am running a two-step joint dynamic panel GMM estimator on Mata, with the stacked formu…
query about stata codeHello, I would like to confirm whether I generate a variable in a proper way. The definition is as f…
Lag independent variable in fixed effects regression using repeated cross section dataHello Statalist, I'm currently analyzing repeated cross-section data (different individuals were su…
xtaond2Hello, Would someone please tell me why the estimation results of the following two xtabond2 comman…
How to find the value of a variable using condition on another variable?Hi Statalist users, I have a dataset of which I am posting a snippet with relevant variables (age, …
Subscribe to:
Post Comments (Atom)
0 Response to explained variance cox regression str2ph str2d with factor variables
Post a Comment