Hello everyone,
I'm trying to evaluate the association between outcome CVD and exposure saturated fat intake. The data is multilevel (households were selected) so I used the -mestreg- command for the multilevel cox regression, specifying the outcome with -stset-. I used the following command:
mestreg exposure1 confounders || household:, distribution(weibull)
However, I have simply assumed that the data follows a weibull distribution (as it is survival data). I would like to test whether this is true. I've read somewhere that you can use the -wbull- command, but am unsure how to run and interpret it. Should I run it on only the households (so 1 person per household) or should I run it on all individuals?
I have tried running it on the individuals in the sample and got this result:
. wbull id
Fitting Weibull distribution to id
b 6305.46272
c 1.62174
(id is simply the unique person id, so every person in the dataset has one).
Is the -wbull- command the correct command to test the weibull distribution? Is there another way to test that the data fits the weibull distribution?
Thank you in advance,
Elvire Landstra
Related Posts with Help with multilevel cox regression
Initial condition y_i,0 in a dynamic model with individual specific effects (following Chamberlain's approach)Dear all, I was wondering how the initial observation y_i,0 should look like in the following AR(1)…
How do I use XTSET in panel data?Hello, I want to assess the impact of migration on the trade. So I have trade data between one dest…
Why we need to use fixed effect for binary variable?When trying to explain the interaction variable explanation, I saw this link. In this link, I saw a …
How to replace missing day/month with a "generic" date (i.e. 01jan) for a string date variableHello, I am working with a string variable called "YearofBirth" that includes includes 443 observati…
confused about restructuring data: reshaping? stacking? something else?Hi, I am using Stata 16.1 on Windows 10. I have attached two datasets: (1) a simple example of the s…
Subscribe to:
Post Comments (Atom)
0 Response to Help with multilevel cox regression
Post a Comment