Statalist


[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
    preserve
    bsample
        lroc, nograph
    restore
end

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
r(301);

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
r(198);).

Any help would be appreciated.

Andrzej






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
http://www.partners.org/complianceline . 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:
*   http://www.stata.com/help.cgi?search
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/



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