[Gretl-devel] resampling the full dataset
Allin Cottrell
cottrell at wfu.edu
Tue Mar 18 10:59:07 EDT 2008
On Tue, 18 Mar 2008, andreas.rosenblad at ltv.se wrote:
> It looks great. However, to be really useful with bootstrapping,
> it should be possible to use the dataset command inside loops,
> which is not possible right now.
That was added yesterday.
open data4-1
loop 100 --progressive --quiet
dataset resample 50
ols 1 0 2
endloop
Each time you do "dataset resample N" it is implicit that the
original dataset should be taken as the baseline, since this
seemed the most natural assumption. If you want to resample from
a resampled dataset (not very likely?) you'd have to first save
the resampled dataset in its own right.
Allin.
More information about the Gretl-devel
mailing list