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

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

Re: PSPP-BUG: Bug-gnu-pspp Digest, Vol 201, Issue 1


From: egraig
Subject: Re: PSPP-BUG: Bug-gnu-pspp Digest, Vol 201, Issue 1
Date: Mon, 4 Nov 2019 14:14:31 -0500

I'm choosing Data|Select Cases and choosing to have PSPP select exactly 140 cases at random as per the dialog box. I’m not sure if this screen capture will show up in this newsreader but the problem can be easily duplicated by anyone opening PSPP and doing the above. Please note, This menu selection is made immediately upon opening PSPP. No commands were issued prior to the Select.

 

A screenshot of a cell phone

Description automatically generated

 

-----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

********************************************


Virus-free. www.avg.com

reply via email to

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