I would like to do the following:
1- simulate 1000 observations
2 - simulate a continuous biomarker which can be normally distributed with a given mean and given standard deviation and simulate a binary outcome, and ensure the following:
a] the ROC AUC is 0.85
b] when fitting a logistic regression on the association between the predictor continuous biomarker on the binary outcome, I obtain an odds ratio of 1.12 (which would mean that for 1 unit increase of the biomarker, the odds of the event increase by 12%)
How do I do this in STATA or R?
Thanks
A
Related Posts with How to simulate data with specified ROC AUC and specified odds ratio
xtivreg commandDear Stata community, I have run the 2SLS panel data, random effects model in stata. Is there any w…
Fixed Effects RegressionI have a regression model and I have to investigate the effect in different cases (with/without time…
Mixed frequency in panal data Hello sir, in my panel data dependent variable is monthly excess return but independent variables …
Respahe to wide?Dear StataList-ers! I have the following dataset, focused on sexually-transmitted disease in USA (s…
Changing Label Code in LabelHey everyone, I have received a data set where the sender incorrectly assigned the wrong codes for …
Subscribe to:
Post Comments (Atom)
0 Response to How to simulate data with specified ROC AUC and specified odds ratio
Post a Comment