Dear statalist users,
I have a question about the bsample command in STATA. I want to use this command to obtain the optimism-corrected performance estimates (R squared and adjusted R squared) for a prediction model using linear regression. I plan to calculate this as:
Optimism= (adj) R squared_bootstrapped - (adj) R squared_ original sample
Optimism corrected values of (adj) R squared= original sample (adj) R squared value minus optimism
To this end, I first ran the linear regressions in the original sample (using the ‘regress’ command) to obtain the ‘(adj) R squared_ original sample’ and then used the bsample command where after I ran the same linear regressions to obtain the ‘(adj) R squared_bootstrapped’.
Could someone indicate whether this is the correct approach?
And should the bootstrapped R squared value always be lower than the original value? Or can it either be higher or lower and you just take the difference to calculate the optimism (so that the optimism-corrected value is always lower than the original value)?
Thank you in advance your you help!
Related Posts with Correct for optimism in prediction modelling using bootstrapping (bsample command), is this the correct approach?
Error in finding host for ssc package downloadHi all, I'm currently working on my thesis with the Abadie-Imbens estimator and have been using Sta…
mhodds and test for trendDear Listers, I am considering using the -mhodds- command for an expvar with more than 2 levels in …
Choosing reference/base periods in panel data and normalizing the corresponding coefficient to zeroHi I am looking to do two things with a panel dataset (c350 firms and annual data from 2008 to 2016…
Regression with change relative to base yearHello! I am sorry if this topic came up before, I tried searching for answers but without luck. I ha…
How to deal with circular causalityThis is a statistics question rather than a Stata question. But I figured I'd ask anyway, since the …
Subscribe to:
Post Comments (Atom)
0 Response to Correct for optimism in prediction modelling using bootstrapping (bsample command), is this the correct approach?
Post a Comment