Statistics Help @ Talk Stats Forum - SPSS
http://www.talkstats.com/
SPSS usage and programming, SPSS syntax, SPSS output.enFri, 03 Jul 2015 20:16:13 GMTvBulletin60http://www.talkstats.com/images/misc/rss.pngStatistics Help @ Talk Stats Forum - SPSS
http://www.talkstats.com/
Look at values in two different variables to create a third variable - help please
http://www.talkstats.com/showthread.php/61475-Look-at-values-in-two-different-variables-to-create-a-third-variable-help-please?goto=newpost
Fri, 03 Jul 2015 15:35:28 GMTHi Everyone,

I feel like this is a tip of my tongue question, but I can't think of how to do it, so here goes:

I have a horizontal dataset of students in a school w the classes they took and the grades they got last year, 1 row per kid. There were 26 possible classes so there are 26 class fields and 26 grade fields.

I need to write syntax that will look across the numbered class fields for specific class titles (math, reading, science, etc), and when it finds a matching title, look to the same numbered grade field and enter that grade into a third field (math_grade).

The syntax will look through all classes for John Smith, find that math was class9, then look for grade9, and code whatever is in the grade9 field as the math_grade for John Smith. The data are arranged similar to what is below.

How do I write syntax that says - look through variables that start with 'class', look for the value 'math', when that is found, look through variables that start with 'grade' and has the same number (1 in this case) as the class variable for math, then take the value in that field and create a new field 'math_grade' with the grade in the matching field.

Name Class1 Class2 Class3 Class4 Grade1 Grade2 Grade3 Grade4 math_grade
John math read sci art A A C B A

I apologize but I'm not a programmer, so searching across spsstutorials.com and such haven't been extremely helpful.

Thanks in advance!

Ken
]]>SPSSKenSoonahttp://www.talkstats.com/showthread.php/61475-Look-at-values-in-two-different-variables-to-create-a-third-variable-help-pleaseCreating graph with multiple variables
http://www.talkstats.com/showthread.php/61452-Creating-graph-with-multiple-variables?goto=newpost
Wed, 01 Jul 2015 14:21:48 GMTHi! I need to create a graph with multiple variables, like the one in the picture http://s8.postimg.org/n41d7lp2t/image.png . Numbers 1-5 represent...Hi! I need to create a graph with multiple variables, like the one in the picture http://s8.postimg.org/n41d7lp2t/image.png . Numbers 1-5 represent answers on Likert type scale, number of responses should be on y axis, and each bar represents one variable. I'm stuck so any help would be appreciated!
]]>SPSSnatalie_http://www.talkstats.com/showthread.php/61452-Creating-graph-with-multiple-variablesalready entered subject how to make treatment and placebo groups
http://www.talkstats.com/showthread.php/61450-already-entered-subject-how-to-make-treatment-and-placebo-groups?goto=newpost
Wed, 01 Jul 2015 09:55:59 GMTI have already entered the data of subjects how to make treatment and placebo groups in already entered data in spssI have already entered the data of subjects how to make treatment and placebo groups in already entered data in spss
]]>SPSSthrobbingheart01http://www.talkstats.com/showthread.php/61450-already-entered-subject-how-to-make-treatment-and-placebo-groups