Hello,
I am trying to run covariate-adjusted discrete-time survival analysis, specifically using the Cox model. I've been referring to the survival package guidebook, but am struggling to understand how to properly execute what I hope to achieve.
For some background, I have a person-period dataset, where I have the following variables: studentID, schoolID, districtID, math_disability, lowincome, timepoint, and group. Within a 9-year time period, each studentID can have timepoints that range from 3 to 9. Basically, there are a certain number of timepoints nested in each student ID, studentIDs nested in schoolIDs, and schoolIDs nested in districtIDs. This is a typical educational dataset structure, as you can see. Outcome of interest is math_disability (0/1) and student-level covariate is lowincome (0/1). Each student ID has a group identifier, which includes 9 possible values (A, B, C, D, E, F, G, H, I).
I want to generate a survival probability plot that presents 9 different lines (1 for each "group") for the probability of receiving math_disability (=1) across the 9 timepoints (0-8). I've tried using the stset to set my person-period dataset and use stcox to generate survival probabilities, but I can't generate by-timepoint survival probabilities by "group" while also controlling for the student-level covariate, "lowincome".
I'd very much appreciate any guidance on this. I'm happy to clarify, of course!
Related Posts with Need guidance with covariate-adjusted discrete-time survival analysis (Cox model)
Generating residuals with miHi all, On p. 296 of the Stata 16 MI manual, the following is stated: The MI predictions shoul…
Ramsey RESET testHi, How can I interpret these results from the Ramsey RESET test? How can I know at which level can…
Difference between Vce and SVYI have stratified sample, what is the difference between vce and svy to correct the standard errors …
F-statistics so high.Hi. I'm PhD student. I have problem to analyze my result. Can i know, why F-statistics is so big. It…
Regression Command for pooled DataHi.. I have four countries cross section data in my sample. i regressed separate regression for each…
Subscribe to:
Post Comments (Atom)
0 Response to Need guidance with covariate-adjusted discrete-time survival analysis (Cox model)
Post a Comment