|
From: | Zoltán Fábián |
Subject: | Re: PSPP-BUG: var_get_case_index: Assertion `var_has_vardict (v)' failed |
Date: | Sun, 30 Dec 2012 20:23:13 +0100 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/17.0 Thunderbird/17.0 |
Hi,if i could be a little bit off-topic: I was always impressed by the responsiveness and professional nature of this list. Hope you can implement the behaviour that is followed by SPSS. Thanks. To be more on-topic. A kind of hack to avoid this type of error: one can always leave out TEMPORARY and RANK and than SAVE OUTFILE= 'WHATEVER.sav', than MATCH FILES FILE = 'WHATEVER.sav' /TABLE = 'WHATEVER.sav' /BY gender. That was the way I overcome this "bug".
Cheers, Zoltan Cheers, and I wish you Happy New Year, Zoltan On 30/12/12 19:12, Ben Pfaff wrote:
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
[Prev in Thread] | Current Thread | [Next in Thread] |