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 edit the height of a bar graph ?Hello dear community, I would like to edit the height of a stacked bar graph I construct. Here is th…
convert string to date: some observations are missing valuesDear Stata Users I am converting string to date variable running the following code: Code: gen da…
Issues with Float VariablesHello everyone, I'm currently working with an imported .csv dataset containing information about pe…
outreg2 drop supress model number (1) (2) etc.Dear all, I am generating tables to go in a paper for publication and I am using outreg2 to group a…
Finding difference in prevalence between yearsI have a dataset of all cases of a specific disease, pemphigus, for 10 years and am using survey wei…
Subscribe to:
Post Comments (Atom)
0 Response to Is there a command that is equivalent to "bsample more than _N"?
Post a Comment