Is it said that George G. Vega Yon/Brian Quistorff's parallel can bootstrap, and while I can reproduce examples provided with parallel ( https://github.com/gvegayon/parallel ) on Stata 15.1; I'm having troubles using it with some functions, for instance, summarize; see below:
Code:
. set obs 100 number of observations (_N) was 0, now 100 . gen n=_n . parallel setclusters 4 N Clusters: 4 Stata dir: /opt/stata15/stata-mp . bs r=r(mean): sum n (running summarize on estimation sample) Warning: Because summarize is not an estimation command or does not set e(sample), bootstrap has no way to determine which observations are used in calculating the statistics and so assumes that all observations are used. This means that no observations will be excluded from the resampling because of missing values or other reasons. If the assumption is not true, press Break, save the data, and drop the observations that are to be excluded. Be sure that the dataset in memory contains only the relevant data. Bootstrap replications (50) ----+--- 1 ---+--- 2 ---+--- 3 ---+--- 4 ---+--- 5 .................................................. 50 Bootstrap results Number of obs = 100 Replications = 50 command: summarize n r: r(mean) ------------------------------------------------------------------------------ | Observed Bootstrap Normal-based | Coef. Std. Err. z P>|z| [95% Conf. Interval] -------------+---------------------------------------------------------------- r | 50.5 3.193037 15.82 0.000 44.24176 56.75824 ------------------------------------------------------------------------------ . parallel bs r=r(mean): sum n -------------------------------------------------------------------------------- Exporting the following program(s): sum program sum not found An error has occurred while exporting -programs-invalid syntax r(111); .
Comment