On Fri, 17 Apr 2020, Sven Schreiber wrote:
Am 17.04.2020 um 13:05 schrieb Riccardo (Jack) Lucchetti:
> On Fri, 17 Apr 2020, Sven Schreiber wrote:
>
>> perhaps we discussed this before: While it is possible in the GUI
>> (menus) to define a dummy indicating the currently active sample, it
>> doesn't seem directly possible to set the sample based on such a dummy.
>> I had problems explaining to new users why that is.
>>
>> I know you can go to Sample/restrict by condition and then type
>> something like mydum==1 in the text field. I also know how to do that in
>> a script. But wouldn't it be more natural if in Sample/choose range
>> there was a way to simply pick the dummy variable and use that
>> automatically?
>
> Uhm, is this a trick question? The dialog you get with "Restrict,
> Based on Criterion" has a radio button that does exactly what you say.
That would explain why I had déjà-vus about this topic. But
unfortunately I don't have that button here. This is 2020a on Windows
10. I will try to cleanly install 2020b and see what happens.
Aha! You only have that button if your currently open dataset contains a
dummy. Try this:
* open bjg.gdt
* go to Restrict, Based on Criterion" -> no radio button
* now create d = lg > 6 (via alt-x, the console, whatever)
* go back to Restrict, Based on Criterion" -> the radio button should be there
-------------------------------------------------------
Riccardo (Jack) Lucchetti
Dipartimento di Scienze Economiche e Sociali (DiSES)
Università Politecnica delle Marche
(formerly known as Università di Ancona)
r.lucchetti(a)univpm.it
http://www2.econ.univpm.it/servizi/hpp/lucchetti
-------------------------------------------------------