[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

st: simulate

From   Andrzej Niemierko <[email protected]>
To   Stata <[email protected]>
Subject   st: simulate
Date   Fri, 04 Sep 2009 10:36:22 -0400

I am trying to validate my logistic regression model by calculating a
distribution of area under the ROC curve for bootstrap samples of my
original data. After estimation using -logistic command I can run my little
program below several times without a problem and getting what I want.

capture program drop mysim
program define mysim
        lroc, nograph

However, when I try to use the -simulation command it looks as my model is
dropped from memory:

simulate area=r(area), reps(100): mysim

last estimates not found
an error occurred when simulate executed mysim

Using -outsample option for lroc doesn't change the behavior of -simulate (I
get the same error message) but it is not allowed for just running mysim
program (with error message: option outsample not allowed

Any help would be appreciated.


The information in this e-mail is intended only for the person to whom it is
addressed. If you believe this e-mail was sent to you in error and the e-mail
contains patient information, please contact the Partners Compliance HelpLine at . If the e-mail was sent to you in error
but does not contain patient information, please contact the sender and properly
dispose of the e-mail.

*   For searches and help try:

© Copyright 1996–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index