Dear statalisters,
I am currently trying to develop a mapping algorithm from the EQ-5D-5L to a disease-specific HRQoL instrument.
I want to do internal validation and I am planning on using the function crossfold to do k-fold cross-validation.
This is what I am doing for e.g. the mixed-effects linear regression.
crossfold xtreg eq5d diseasescore age i.gender, mle k(10)
However, I am not sure how to proceed with the cross validation when I run a two-part model.
In this two part model, I first conducted a mixed-effects logistic regression which was fitted to predict the probability of a respondent having full health (EQ-5D-5L score equal to one). In a second stage a mixed-effects OLS truncated to those who do not have full health was estimated. The overall expected EQ-5D-5L index score was calculated using an expected value approach with the formula Expected EQ-5D = predicted value for those in full health + (1- predicted value for those in full health) * predicted value for those in imperfect health.
Basically I do not know how can I do cross validation in this specific case. I know I could use the crossfold command for each part of the model (logistic regression or linear regression), but I am interested in the final eq-5d results obtained from the two parts of the model...
Thanks a lot!
I am using STATA 15.
Thanks!
Related Posts with Cross-fold validation in two part models (health economics example)
regexr - Regular Expression in StataHi everyone! I am working on some regular expression problem. The data I have is something like this…
Manually estimating standard error of the random effect, after the mi estimate: mixed command, with remlHello, I am using mi estimate: mixed, with reml. In Stata 16.1 Following estimation of the model, I …
forest plot not plottingI think it might be related to the estimates store not properly working (in bold). I'd appreciate an…
Missing values after appending in loopHello, I am appending 78 dta files using a loop. When I do this, some observations of the district v…
diff command (rcs and bootstrap option) - results replication issue*Hi, I am new user to Stata forum. I have been working with a two year repeated cross-sectional data…
Subscribe to:
Post Comments (Atom)
0 Response to Cross-fold validation in two part models (health economics example)
Post a Comment