Am 23.07.2014 14:49, schrieb Allin Cottrell:
On Wed, 23 Jul 2014, Sven Schreiber wrote:
> obviously it's absolutely essential to be able to create variables only
> for the currently active subsample. But I'm wondering, is there another
> (easier) way to generate variables also for the full workfile sample
> range without temporarily removing and then later re-applying the sample
> restrictions?
>
> Perhaps something like "series mynew = log(income) --full" if you
> understand what I mean by that.
Yes, understood, but No, there's no such option. The presumption is that
if you want to define series for the full data range you do so before
sub-sampling.
Right -- what about the $sample accessor. I like the clever way how it
differentiates between non-used and out-of-sample observations after
estimations, but it would also be useful to get a binary dummy series
just for the active sample without any estimates. Of course a workaround
would consist of doing some trivial OLS just to access $sample afterwards...
thanks,
sven