Re: Sex histogram

2014-02-06 Thread Alan Mead
Sorry, this should have been: recode string.sex ('M'=1) ('F'=2) (ELSE=SYSMIS) into numeric.sex. execute. or if( string.sex = 'M' ) numeric.sex = 1. if( string.sex = 'F' ) numeric.sex = 2. execute. On 02/06/2014 10:39 AM, Alan Mead wrote: compute string.sex ('M'=1) ('F'=2) (ELSE=SYSMIS) in

Re: Sex histogram

2014-02-06 Thread Denis Bergeron
Maybe my translation is not good. But what is the good word for a graphical representation of a string discrete uncontinius variable ? A bar graph ? Did PSPP do that ? Le jeu 06 fév 2014 12:16:48 EST, John Darrington a écrit : I don't understand how a "histogram for a string variable" has an

Re: Sex histogram

2014-02-06 Thread John Darrington
I don't understand how a "histogram for a string variable" has any meaning. A histogram groups numbers into ranges - you can't "group strings into ranges", because a string does not contain quantative information. Slightly more formally, a histogram is an approximation to a probability distribut

Re: Sex histogram

2014-02-06 Thread Alan Mead
compute string.sex ('M'=1) ('F'=2) (ELSE=SYSMIS) into numeric.sex. execute. On 2/6/2014 10:37 AM, Sam Allen wrote: Denis, Can you recode the variable from string to numeric and try again? Surely this would be easier than R. Sam On Thursday, February 6, 2014, Denis Bergeron mailto:denis.b.

Re: Sex histogram

2014-02-06 Thread Sam Allen
Denis, Can you recode the variable from string to numeric and try again? Surely this would be easier than R. Sam On Thursday, February 6, 2014, Denis Bergeron wrote: > Hi everyone, > > I trying PSPP for the first the, in place of SPSS. > I'm a student, and I can afford to go to the school lab

Sex histogram

2014-02-06 Thread Denis Bergeron
Hi everyone, I trying PSPP for the first the, in place of SPSS. I'm a student, and I can afford to go to the school lab everyday for SPSS work. So, I,m tryting PSPP 0.7.9 included with Ubuntu 13.10 I trying to do histogram of the gender distribution on a pretty small echantillon. I read on a l

Re: How to calculate maximun value within fields

2014-02-06 Thread Frans Houweling
Hi Carlos, as no one seems to answer, here is my go at it. DATA LIST FREE / A B C D. BEGIN DATA 0.1 0.5 0.4 0.0 0.2 0.2 0.1 0.5 0.9 0.1 0.0 0.0 END DATA. COMPUTE HiVar = 0. COMPUTE #HiVal = -1. VECTOR val = A TO D. LOOP #i = 1 TO 4. + DO IF val(#i) GT #HiVal. + COMPUTE #HiVal = val(#i). + COMP