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
After frlink, can we check which observation in frame2 didn't matach in frame1?After frlink, can we check which observation in frame2 didn't match in frame1? If we use two dataset…
Kitagawa-Oaxaca-Blinder Panel Data Model - Interventionist Approach / Oaxaca Panel Suggestions?Does anyone have any advice on implementing Kroger and Hartmann's (August 25, 2021) interventionist …
Foreach loop - skip no observationsHello, I've been reading the posts on related questions on the forum but I am still somewhat stuck …
Ivregress 2sls error "r(301)" last estimates not found.Hi everyone, I am using portable Stata 16. I need to run 2sls regression of y on x with instrument …
Referring to the last Variable in A DatasetI'm working with Johns' Hopkins COVID-19 data. It comes in wide format and I must reshape it. The is…
Subscribe to:
Post Comments (Atom)
0 Response to How to simulate data with specified ROC AUC and specified odds ratio
Post a Comment