Login  Register

Re: Estimating actual earnings from earnings groups

Posted by Rich Ulrich on Oct 15, 2018; 3:11am
URL: http://spssx-discussion.165.s1.nabble.com/Estimating-actual-earnings-from-earnings-groups-tp5736859p5736868.html

Your very first error message says that it objects to VARIABLES.
Your example that works has VARIABLES=    

I'd say, apparently that  "=" is required.
I'm not sure that's true for every command, but I never tested it.

--
Rich Ulrich

From: SPSSX(r) Discussion <[hidden email]> on behalf of John F Hall <[hidden email]>
Sent: Sunday, October 14, 2018 12:23 PM
To: [hidden email]
Subject: Re: Estimating actual earnings from earnings groups
 

Tried all manner of variations, but BY doesn't work for me. 

 

rank VARIABLES rearn /ntiles (4)  into xxxx by year .

rank VARIABLES rearn (a) /ntiles (4)  into xxxx by year .

 

Warnings

Text: VARIABLES Command: rank

An undefined variable name, or a scratch or system variable was specified in a variable list which accepts only standard variables.  Check spelling and verify the existence of this variable.

Execution of this command stops.

No analysis is performed because of an invalid input variable list.

Expected A or D keyword on the VARIABLES subcommand was not found. Syntax checking begins with the next right parenthesis.

The number of variable names in the INTO variable list exceeds the number of variable names in the input variable list.

RANK syntax error. This is not a valid variable name. It either exceeds 64 characters, does not start with a letter, contains something besides letters, digits, "_", or ".", or is a reserved word.

An already existing variable name was used in the INTO variable list.

 

Not to worry, I got what I wanted with:

 

SPLIT FILE by year.

RANK variables = rearn /ntiles (4) into newrearnq .

 

 

John F Hall  MA (Cantab) Dip Ed (Dunelm)

[Retired academic survey researcher]

 

Email:          [hidden email]

Website:     Journeys in Survey Research

Course:       Survey Analysis Workshop (SPSS)

Research:   Subjective Social Indicators (Quality of Life)

 

-----Original Message-----
From: SPSSX(r) Discussion <[hidden email]> On Behalf Of David Marso
Sent: 14 October 2018 17:31
To: [hidden email]
Subject: Re: Estimating actual earnings from earnings groups

 

Note that RANK has a BY subcommand.

 

=====================

To manage your subscription to SPSSX-L, send a message to [hidden email] (not to SPSSX-L), with no body text except the command. To leave the list, send the command SIGNOFF SPSSX-L For a list of commands to manage subscriptions, send the command INFO REFCARD

===================== To manage your subscription to SPSSX-L, send a message to [hidden email] (not to SPSSX-L), with no body text except the command. To leave the list, send the command SIGNOFF SPSSX-L For a list of commands to manage subscriptions, send the command INFO REFCARD
===================== To manage your subscription to SPSSX-L, send a message to [hidden email] (not to SPSSX-L), with no body text except the command. To leave the list, send the command SIGNOFF SPSSX-L For a list of commands to manage subscriptions, send the command INFO REFCARD