Am 10.09.2011 13:00, schrieb artur bala:
Hi Alessandro,
Just FYI
> I must create a new time series y(t), with 250 observations, resampling with
> replacement the elements of x. I have used the command
>
> genr y = replace(x)
Are you sure that's "replace" and not "resample" ? ;)
> but gretl creates y(t) with 200 observations.
That's normal. As long as the dataset "dimension" is of 200
observations, no series may contain more than 200 obs.
> Can I create y with 250
> observations?
You have to add more 50 observations but will not be worth of it : by
resampling x, y series will still contains 200 obs taken from x and 50
obs labelled as NA (not available).
Yes, but he could do the resampling twice and take the first 200 obs
from the first series, and the final 50 obs from the second series, and
glue the parts together to get a 250-obs series.
hth,
sven