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
Making graphs of costs within weeksHello! I faced with a problem of making graphs. I have the following task. There are files from 2006…
STATA Not giving resultsFriends, I have this on table; I fitted a random slope model. But i am very surprised that STATA pr…
Treatment group is omitted because of collinearity I am using a difference-in-difference strategy with fixed effects -xtreg...,fe robust-. I am using …
Locpoly issueWe are working on a panel primary survey socioeconomic data. We are trying to compare semiparametric…
Question about interactionI run regression and I would to show the interaction/difference between two variables. First, I use…
Subscribe to:
Post Comments (Atom)
0 Response to How to simulate data with specified ROC AUC and specified odds ratio
Post a Comment