[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: PSPP-BUG: var_get_case_index: Assertion `var_has_vardict (v)' failed
From: |
Ben Pfaff |
Subject: |
Re: PSPP-BUG: var_get_case_index: Assertion `var_has_vardict (v)' failed |
Date: |
Sun, 30 Dec 2012 10:12:45 -0800 |
User-agent: |
Mutt/1.5.21 (2010-09-15) |
On Sun, Dec 30, 2012 at 09:09:03AM +0100, Zolt?n F?bi?n wrote:
> Hi Ben,
> Please , consider the following example:
>
> DATA LIST TABLE /x 1 gender 3 (A).
> BEGIN DATA.
> 1 f
> 2 m
> 3 f
> 4 m
> 5 f
> 6 m
> 7 f
> 8 m
> 9 f
> end data.
> FREQUENCIES x gender.
> RANK x.
> DISPLAY DICTIONARY.
> TEMPORARY.
> SELECT IF (gender="f").
> RANK x /ntiles (2) into y1.
> FREQUENCIES y1.
>
> TEMPORARY.
> SELECT IF (gender="m").
> RANK x /ntiles (2) into y2.
> FREQUENCIES y2.
>
> It runs in SPSS and produced the attached output.
Thanks a lot! It seems that SPSS ranks the selected cases and gives the
non-selected case missing values in the rank variable. This is a
reasonable interpretation, and probably the most useful, but somewhat
tricky to implement.
I've added this information to bug #37999 on Savannah:
https://savannah.gnu.org/bugs/index.php?37999