Hi,
I am trying to estimate the hazard ratios of the age of first drinking, the goal is to measure the risks of underage drinking (<18 years). The values for age at first drinking are: 0 (never), 12,13, 14...38.
I can run the analysis as it is, but certainly not doing it right because I didn't specify the cut-off age anywhere. I am following a similar study that mentioned: "The outcome variable is the age at first drinking. For teens with no drinking experience at survey time, the age at interview was used to include them in the analysis (i.e., censor under the terminology of survival analysis)."
Please free free to share your insights on this, or link to any material that can teach the method.
Thank you.
Related Posts with Setting the outcome variable in Cox regression.
Looping through multiple levels of variables not workingHello, I am working on a project but I am struggling with my stata code. I have a data set that I cr…
Weights in panel dataHi, I am working with a set of panel data where I am looking at students' school results in differen…
how can i combine two datasets like this?Hi, I want to combine two datasets. Here is an example of what i have: Dataset A: id Country Gen…
FE RE ModelHello everyone. I wanted to know apart from testing which model to use , fixed effects or random eff…
Why does Stata 16 crash every time I close a do-file??Stata experts, Can anyone help me figure out why stata 16 crashes every time I close a do-file? It …
Subscribe to:
Post Comments (Atom)
0 Response to Setting the outcome variable in Cox regression.
Post a Comment