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
how to change capital letters in all variable names into small letters?I have 1300 variables, and all the variables contain capital letters in their names. I want all of t…
The Im, Pesaran and Shin (IPS) Unit Root TestWhen conducting the IPS unit root test, the options that you can add to the command include "trend",…
Counting the number of different firms a person visits over timeI’m using generate _n and getting a result I know is wrong, so I know I’m misunderstanding something…
How to convert a single column into multiple rowsHi there, A newbie here. I have been trying to convert my data for hours but could not manage to do …
Mlogit with Multiple Imputation Produces Relative Risk Ratios with Negative ValuesI am analyzing summarized Medicaid data (N = 1,102,479) and using Stata 17.0. I am looking at variou…
Subscribe to:
Post Comments (Atom)
0 Response to Application of syntax (svy) to cox regression
Post a Comment