Dear all:
I have one question regarding application of syntax (svy) to cox regression.
After using "svyset" to set sampling error and stratum and using weighing option when doing "stset", I planned to apply "svy" to a cox regression, which has robust option.
In this regard, the syntax is:
svy: stcox predictor_1 predictor_2 ... predictor_N, vce(robust)
(Note: the reason I put "robust" is that: I have to use Andersen-Gill model to deal with recurrent events)
But, after typing that syntax, I got the following message: "option robust not allowed with the svy prefix"
May I have your favor to figure out this question?
Thank you very much
Related Posts with Application of syntax (svy) to cox regression
mlabel in scatter plotDear Stata users, I'm trying to produce a graph with both scatter and lfit commands. I would like t…
generate separate group variables instead of categorical variable. Need your help!Hi everyone, I have a logistic model to test the effect of different individual characteristics on …
re-transformation of logged DV give ridiculous valueDear All, I have a quick question. I am not sure what I did wrong here. After I run ivregress 2sls,…
VAR Model Lag Length Code: * Example generated by -dataex-. To install: ssc install dataex clear input float(Dlrgdp Dlo…
Solving nonlinear function in StataHi everyone, I'm trying to generate a variable (r) using an implicit expression. The equation is: (…
Subscribe to:
Post Comments (Atom)
0 Response to Application of syntax (svy) to cox regression
Post a Comment