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
List of localsHi Statalist! I need to make a list of some locals defined in the .do file, in order to verify if t…
GMM Panel Data on StataHi, I have a dynamic model where the dependent variable is lagged. Therefore I am using system-GMM a…
Python in StataDear all, I have a question about Python and Stata in version 16. I checked the documentation and ma…
Using loops and assigning particular rules to eachDear Stata list, I am agonising over a problem and would very much appreciate your support. I have …
Mediation Analysis with multiple control variables and bootstrap CIsDear Statalist, after intensive studying of the available resources online, I am still left with so…
Subscribe to:
Post Comments (Atom)
0 Response to How to simulate data with specified ROC AUC and specified odds ratio
Post a Comment