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"?
How to weight the analysis by the actual population?Dear Statalist, I hope you are well. In fact, I have used the method of random sampling to collect…
Conditioning on a string variableHi, I'm new to Stata and would like to know how to condition on a string variable. I have a variable…
Xtabond2 command for system GMM. Please help me with the coding!Dear all, I am studying the relationship between Economic growth and FDI inflow. Due to the endogen…
xtivreg2 interpretationDear all, Can I interpret the following output as the instruments are not valid by looking at the S…
Separate GMT date into date and military timeI have a data set with the date as shown in the sample data. I wish to separate the variable "date_G…
Subscribe to:
Post Comments (Atom)
0 Response to Is there a command that is equivalent to "bsample more than _N"?
Post a Comment