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
Free forum by Nabble | Edit this page |