Search found 3 matches

Go to advanced search

by rdone
Fri Oct 13, 2017 12:36 am
Forum: Coding SPSS syntax
Topic: Recode Variables with Text File Condition/Value List
Replies: 2
Views: 160

Re: Recode Variables with Text File Condition/Value List

Win7 Ultimate 64, SPSS 22 64. The code needs to look at the value of a single variable for every case in my data set, compare it to all of the values in column a of $dxref 2015.csv, and assign the corresponding recode value in column b. At https://www.hcup-us.ahrq.gov/toolssoftware/ccs/ccs.jsp#downl...
by rdone
Thu Oct 12, 2017 11:45 pm
Forum: Coding SPSS syntax
Topic: Recode Variables with Text File Condition/Value List
Replies: 2
Views: 160

Recode Variables with Text File Condition/Value List

I need to recode about 14K possible values into a couple hundred values using a text file of conditions (ICD codes into CCS groupers, in case someone knows of existing SPSS code to do this). My idea is to use a macro and/or loop function, but I haven't found any code out there that references a text...
by rdone
Mon Mar 06, 2017 6:16 pm
Forum: Enhancing data
Topic: Recode Using Array
Replies: 0
Views: 380

Recode Using Array

I need to recode a variable based on a list of about 6,300 reference codes. The logic might look like: recode VAR2 as 1 if VAR1 = (any value on list of reference codes) Is there a way to do this using an array or some other quicker way than hard coding each of the 6,300 reference codes? Thanks in ad...

cron