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
Compute Female proportion in each district in long format data in Stata.
I have a long format dataset where it has 5 variables:
did---district id
sid---school id
id--studen…
Help with StrposHi there,
In the code below my goal is to convert the local below into a neat list by converting "R…
merging two panel data sets - 1:m mergingHello, I need help with two merging panel data sets according to the following variables: h_id, year…
Problems with panel dataI am new to stata and I trying to run a regression to understand demographic roles in unemployment, …
Measuring duration between age 13 and 19Hi people,
Supposed i want to measure marriage timing among pregnant and non pregnant adolescents (a…
Subscribe to:
Post Comments (Atom)
0 Response to Application of syntax (svy) to cox regression
Post a Comment