Search found 28 matches

Go to advanced search

by Erikyo
Tue Mar 14, 2017 2:00 pm
Forum: Data input
Topic: Issue with Age Variable
Replies: 2
Views: 313

Re: Issue with Age Variable

Hi, It's probably because your age variable is a string, the variable needs to be numeric before you can fully play with it !!! Deleting the "years old" mentions and stuff like that is not enough to make your variable numeric. BUT You have to be super careful to not lose any datas. The possibility o...
by Erikyo
Tue Mar 14, 2017 1:51 pm
Forum: Data input
Topic: Recoding issue
Replies: 5
Views: 290

Re: Recoding issue

Here's a quick answer that might help.

For example, if you want to use the range option, make sure you are working on a numeric variable. If you try to work with a string, the range option will be greyed out !

Hope this helps !
by Erikyo
Tue Apr 26, 2016 5:32 pm
Forum: General
Topic: Multiple response variable - Sintaxis...
Replies: 3
Views: 412

Re: Multiple response variable - Sintaxis...

Hi,

It's been a long time since I've used this.

After you define your multiple response set using the menu, launch a frequency of your new set using the same menu and you should find the syntax within the output !!

Hope this helps !
by Erikyo
Mon Jan 18, 2016 6:15 pm
Forum: SPSS for beginners
Topic: Helping creating new variable from others
Replies: 3
Views: 340

Re: Helping creating new variable from others

Hi,

I know that the "+" command doesn't do the job !

Try with SUM !

For example : SUM (var1, var2, var3).
by Erikyo
Thu Nov 12, 2015 9:22 pm
Forum: Coding SPSS syntax
Topic: Syntax coding for new variables using string variables
Replies: 2
Views: 714

Re: Syntax coding for new variables using string variables

Hi, First, you are right, you should not transform your GeoSet variable, it is your original variable and contains the original datas. You should leave it as is. You should built a new variable ! GeoSet2 for example. Second, your original codes 0, 4 and 5. These should be considered 'special codes' ...
by Erikyo
Wed Sep 23, 2015 1:30 pm
Forum: SPSS for beginners
Topic: Combining categorical variables
Replies: 1
Views: 283

Re: Combining categorical variables

Hi, If I understand correctly, let's say your original is AGE. Where ... 21-25 is code 1 26-30 is code 2 31-35 is code 3 and up to 6 codes You have to do a "Recode into different variable" creating AGE2 (that way, you keep your original variable intact. And it goes like this : RECODE AGE (1=1) (2=1)...
by Erikyo
Fri Jul 03, 2015 2:51 pm
Forum: Coding SPSS syntax
Topic: Exporting 'variable view' data as csv
Replies: 5
Views: 1084

Re: Exporting 'variable view' data as csv

If you are not using Python, the following is not exactly what you want but it's the next best thing :

CODEBOOK var1 [n] var2 [n] var3 [n]
/VARINFO LABEL
/OPTIONS VARORDER=VARLIST SORT=ASCENDING MAXCATS=200
/STATISTICS NONE.
by Erikyo
Thu Sep 25, 2014 5:57 pm
Forum: Coding SPSS syntax
Topic: Coding a complicated formula
Replies: 2
Views: 768

Re: Coding a complicated formula

Not easy indeed ! Not sure I have the right solution but this may help ! Starting with this : sum (( Psy_Dist_ijk)^2 /V_ik /5) I would create 3 variables ... - A first variable that does this part : sum (( Psy_Dist_ijk)^2 - A second variable that calculate the variance : V_ik - And a third variable ...
by Erikyo
Fri Apr 26, 2013 7:45 pm
Forum: Coding SPSS syntax
Topic: Assign value/variable labels for multiple vars at once
Replies: 2
Views: 851

Re: Assign value/variable labels for multiple vars at once

Easy,

VALUE LABELS
Q1 Q2 Q3
1 "1 to 6"
2 "7 - 8"
3 "9 - 10".
EXECUTE.

For the variable labels, I guess it would work as easily.
by Erikyo
Fri Jan 25, 2013 5:16 pm
Forum: SPSS for beginners
Topic: A Question: Value Labels.
Replies: 1
Views: 457

Re: A Question: Value Labels.

Very quick answer for you.

I always use Excel and Word to build up syntax !! Put everything you need in Excel, copy it and paste it to Word.

When in Word, know that ^T replaces the tabs and ^p replace 'enter'
by Erikyo
Fri Jan 25, 2013 5:11 pm
Forum: Coding SPSS syntax
Topic: Add a character (0) to certain positions in strings
Replies: 2
Views: 1150

Re: Add a character (0) to certain positions in strings

Hi ! Turns out to be true Jon. Anyway, for anyone interested, I solved only what was necessary to solve this way : STRING Date(A8). EXECUTE. *NLONG. COMPUTE NLONG=length(rtrim(vardate," ")). EXECUTE. *If 6. IF (NLONG = 6) Date = concat(substr(vardate, 1, 4), "0", substr(vardate, 5, 1), "0", substr(v...
by Erikyo
Tue Jan 22, 2013 8:59 pm
Forum: SPSS for beginners
Topic: Variables setting
Replies: 1
Views: 488

Re: Variables setting

Hi, First and foremost, forget about pasting datas to SPSS. Simply open SPSS, then click File - Open - Data Then select the right file type. And then the rest of the procedure is pretty easy. The results will be a database where variables with numbers only will be set as Numeric and the others as st...
by Erikyo
Tue Jan 22, 2013 1:41 pm
Forum: Coding SPSS syntax
Topic: Add a character (0) to certain positions in strings
Replies: 2
Views: 1150

Add a character (0) to certain positions in strings

Hi you guys, long time no see !! A little variation on another date problem. I have a string variable representing a date. As we are now in January 2013, it creates a bigger problem than what I'm able to handle, I hope you can help me !!! A typical value in that variable appears like this : 20121231...
by Erikyo
Mon Jan 21, 2013 4:57 pm
Forum: Coding SPSS syntax
Topic: Creating new date variable from 2 previous date variables
Replies: 4
Views: 1359

Re: Creating new date variable from 2 previous date variable

Hi you guys, long time no see !! A little variation on another date problem. I have a string variable representing a date. As we are now in January 2013, it creates a bigger problem than what I'm able to handle, I hope you can help me !!! A typical value in that variable appears like this : 20121231...
by Erikyo
Tue Aug 14, 2012 3:53 pm
Forum: Statistics for beginners
Topic: Transform?
Replies: 2
Views: 952

Re: Transform?

Hi cta111, I didn't look at your file but I remember facing that problem years ago. Basically, you have a variable for the annual income but you figured out that you can't get an average out of it. To fix this, you have no choice but to work with the middle point. It's not the best of solution but I...

cron