Am 18.01.2022 um 07:24 schrieb atecon:
Am 18.01.2022 00:07 schrieb Sven Schreiber:
>
>
> smpl unit == donor --restrict
> matrix mydonor = {y} # no problem here, works
> smpl --full # should be redundant, but isn't -- perhaps a gretl bug?
> smpl unit == target_group --replace --restrict
>
> When I leave out the "smpl --full" line, I get an error message at the
> last quoted line saying "no observations would be left".
>
> Somehow it feels as if the "--replace" option here isn't honored.
Hi,
I've experienced this tricky issue for about 1,5 years, too. Allin had
already fixed some corner case a while ago (discussed in a private
chat). But there are still situations where the --replace option is
not honored.
Thanks for the information, Artur. Would you say that happens mostly in
a panel context, or also with time-series and so on? BTW, notice that my
restrictions effectively turn the panel data into a time series "slice",
maybe that plays a role.
Another wild guess: The help says "[the --replace] option is not
compatible with the --contiguous option". Maybe internally gretl
somehow automatically tries to do the contiguous thing and therefore
replace gets ignored here?
BTW: I surprised that the syntax "smpl --full" works at all as,
according to the help text, it should be "smpl full".
Hehe, for me it's the other way around. I find the double-dash notation
more consistent with gretl's syntax, but I know that both work. Yes,
maybe --full should be documented, or perhaps even preferred?
cheers
sven