I'd like to create, say, B=100 bootstrapped samples of a dataset. I was a little surprised to learn that the -bsample- command won't do that. -bsample- will only create one boostrapped sample, with a sample size no bigger than _N. And who would want just one bootstrapped sample?
I can create 100 bootstrapped sample by putting -bsample- inside loop, but it doesn't seem like users should have to do that. Is there a command that can create 100 bootstrapped samples with a single of code?
(I do know that the -bootstrap-: prefix will generate the samples and analyze them automatically, but I have a slightly different use for the bootstrap, so that's not going to solve my problem.
Related Posts with Creating multiple bootstrapped samples
Returned listConsider this simple example: Code: . return list scalars: r(changed) = 1 …
Graph STATA RR 95% CI with different colors and space between barsHello everybody, I am really struggling to create a graph in STATA that looks like the attached one…
Difference in Difference Model - Binary outcome variable- Panel dataHi, I am trying to do a diff in diff model for the panel dataset. My outcome variable (y) is binary…
Reshape from wide to long with multiple variablesHello everyone, Just trying to puzzle out how to reshape my dataset from wide format to long, but w…
Variable transormation and change in coefficientsDear Stata members Let us say that my dependent variable is Net credit, derived as a difference betw…
Subscribe to:
Post Comments (Atom)
0 Response to Creating multiple bootstrapped samples
Post a Comment