The command
bsample B
with B > _N
(e.g., if _N = 100., trying to sample more than 100 times with replacement)
yields
resample size must not be greater than number of observations
r(498);
Is there a command that can sample with replacement more than _N times? I realize I could loop through floor( B / _N) times and then once more on the remainder, but I'm hoping there is a compact command.
Also, if your time allows, I'm curious: why is bsample limited in this way? It samples with replacement...why can't it generate a randomly-selected sample that has more observations than the original dataset?
Related Posts with Is there a command that is equivalent to "bsample more than _N"?
Is it possibly to export xttrans results to Excel table?Hello! I am trying to figure out how to export results from xttrans command to an Excel file. My com…
Adding character to string variable depending on the length of characters in the same stringHi, I've got a string variable, which should have 10 characters. I need to add a "0" in the front o…
Interpretation sum of coefficientsDear Stata users, I have a question regarding the interpretation of my coefficients. I use an IV (T…
Appending multiple filesHi all, I have 135 .dta files on a folder each for one month from 2004m1 to 2018m12. The files are …
Interpretation coefficientsHi all, I was wondering if someone could help me out with some questions I have regarding the inter…
Subscribe to:
Post Comments (Atom)
0 Response to Is there a command that is equivalent to "bsample more than _N"?
Post a Comment