Hi experts,
I know that in STATA we can use the logit command to fit a discrete-time logistic hazards model (logit event timevar indepvars, where event is a binary variable with 0 meaning surviving at a given time and 1 meaning 'died' at a given time), given that our data is in the long format.
My question is: can I use local regression commands such as lpoly/lowess/npregress to fit a hazards model? For example, given a long-format data, can I run:
lpoly event timevar indepvars, logit
or
npregress event timevar indepvars
and then use margin to calculate the probability of experiencing the event at each time point of the timevar?
Related Posts with Can lpoly/lowess/npregress be used in a survival analysis context?
Summary Variables for Household CharacteristicsHello Statalisters, I'm trying to summarize some statistics by household (NUM_HOG). Specifically, I …
Converting data to numericHi All, I have the following dataset: Code: * Example generated by -dataex-. To install: ssc ins…
Stata commmands to analyze data where each record contains monthly totals: aggregate data problem but not really a wide to long solutionHi, I have some health centre data from Africa where each record consists of fields that represent …
Dummy VariableHi, So I created a dummy variable by the following code: gen YearGroup = 0 replace YearGroup = 1 i…
PVAR irfDear All, I'm running panel var on two datasets and i want to compare their irf graphs. i want to pu…
Subscribe to:
Post Comments (Atom)
0 Response to Can lpoly/lowess/npregress be used in a survival analysis context?
Post a Comment