bug-gnu-pspp
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

PSPP-BUG: Potential bug with select random cases.


From: egraig
Subject: PSPP-BUG: Potential bug with select random cases.
Date: Fri, 1 Nov 2019 14:05:24 -0400

I believe this is the latest version since I only downloaded it a few weeks ago 
(GNU pspp 1.2.0-g0fb4db). There were no menu or any other actions prior to 
running this syntax. I basically started PSPP, fetched my data (a General 
Social Survey data file in sav form) and requested the select command. 

It is that sort command that throws the error. Selecting random cases using the 
percent option does not raise it.

-----Original Message-----
From: Bug-gnu-pspp <bug-gnu-pspp-bounces+egraig=address@hidden> On Behalf Of 
address@hidden
Sent: Friday, November 1, 2019 12:00 PM
To: address@hidden
Subject: Bug-gnu-pspp Digest, Vol 201, Issue 1

Send Bug-gnu-pspp mailing list submissions to
        address@hidden

To subscribe or unsubscribe via the World Wide Web, visit
        https://lists.gnu.org/mailman/listinfo/bug-gnu-pspp
or, via email, send a message with subject or body 'help' to
        address@hidden

You can reach the person managing the list at
        address@hidden

When replying, please edit your Subject line so it is more specific than "Re: 
Contents of Bug-gnu-pspp digest..."


Today's Topics:

   1. Select Random Cases Bug (Eric E Graig)
   2. Re: Select Random Cases Bug (John Darrington)


----------------------------------------------------------------------

Message: 1
Date: Fri, 1 Nov 2019 15:24:18 +0000
From: Eric E Graig <address@hidden>
To: "address@hidden" <address@hidden>
Subject: PSPP-BUG: Select Random Cases Bug
Message-ID: <address@hidden>
Content-Type: text/plain; charset="utf-8"

I am attempting to select 150 cases from an sav file with 1490 cases. The 
syntax, generated by PSPP itself:

COMPUTE case_$ = $CASENUM.
COMPUTE filter_$ = case_$ > 1400.
COMPUTE rv_$ = RV.UNIFORM (0, 1).
SORT BY filter_$, rv_$.
EXECUTE.
COMPUTE filter_$ = $CASENUM.
COMPUTE filter_$ = filter_$ <= 150
EXECUTE.
SORT BY case_$.
DELETE VARIABLES case_$, rv_$.
EXECUTE.
FILTER BY filter_$.

Throws this error:

COMPUTE case_$ = $CASENUM.
COMPUTE filter_$ = case_$ > 1400.
COMPUTE rv_$ = RV.UNIFORM (0, 1).
.1-4: error: COMPUTE: Unknown command `SORT'.
SORT BY filter_$, rv_$.
EXECUTE.
COMPUTE filter_$ = $CASENUM.
COMPUTE filter_$ = filter_$ <= 150
EXECUTE.
.1-4: error: EXECUTE: Unknown command `SORT'.
SORT BY case_$.
DELETE VARIABLES case_$, rv_$.
EXECUTE.
FILTER BY filter_$.

Since I've done nothing to modify the code, I have to assume this is a bug.

Eric

-------------- next part --------------
An HTML attachment was scrubbed...
URL: 
<https://lists.gnu.org/archive/html/bug-gnu-pspp/attachments/20191101/c3e5a564/attachment.html>

------------------------------

Message: 2
Date: Fri, 1 Nov 2019 16:45:09 +0100
From: John Darrington <address@hidden>
To: Eric E Graig <address@hidden>
Cc: "address@hidden" <address@hidden>
Subject: Re: PSPP-BUG: Select Random Cases Bug
Message-ID: <20191101154509.x25a2a3nup2t5347@jocasta.intra>
Content-Type: text/plain; charset=us-ascii

On Fri, Nov 01, 2019 at 03:24:18PM +0000, Eric E Graig wrote:
     I am attempting to select 150 cases from an sav file with 1490 cases. The 
syntax, generated by PSPP itself:

     COMPUTE case_$ = $CASENUM.
     COMPUTE filter_$ = case_$ > 1400.
     COMPUTE rv_$ = RV.UNIFORM (0, 1).
     SORT BY filter_$, rv_$.
     EXECUTE.
     COMPUTE filter_$ = $CASENUM.
     COMPUTE filter_$ = filter_$ <= 150
     EXECUTE.
     SORT BY case_$.
     DELETE VARIABLES case_$, rv_$.
     EXECUTE.
     FILTER BY filter_$.

     Throws this error:

     COMPUTE case_$ = $CASENUM.
     COMPUTE filter_$ = case_$ > 1400.
     COMPUTE rv_$ = RV.UNIFORM (0, 1).
     .1-4: error: COMPUTE: Unknown command `SORT'.
     SORT BY filter_$, rv_$.
     EXECUTE.
     COMPUTE filter_$ = $CASENUM.
     COMPUTE filter_$ = filter_$ <= 150
     EXECUTE.
     .1-4: error: EXECUTE: Unknown command `SORT'.
     SORT BY case_$.
     DELETE VARIABLES case_$, rv_$.
     EXECUTE.
     FILTER BY filter_$.

     Since I've done nothing to modify the code, I have to assume this is a bug.

On the face of it, it sounds like it.

However you haven't said

1) Which version of pspp you are using (perhaps it is a bug which has already 
been fixed).

2) Exactly what did you do (what sequence of menu actions did you
perform) to provoke this behaviour.

If you can provide this information, the hopefully we can investigate and if 
necessary correct the problem.

Regards,

John




------------------------------

Subject: Digest Footer

_______________________________________________
Bug-gnu-pspp mailing list
address@hidden
https://lists.gnu.org/mailman/listinfo/bug-gnu-pspp


------------------------------

End of Bug-gnu-pspp Digest, Vol 201, Issue 1
********************************************


--
This email has been checked for viruses by AVG.
https://www.avg.com




reply via email to

[Prev in Thread] Current Thread [Next in Thread]