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) 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 <denis.b.berge...@gmail.com <mailto:denis.b.berge...@gmail.com>> 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 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 lot of forum that PSPP doesn't output histogram for
    string variable.
    Unfortunatly is a requirement for the class.
    I would like to see if it's possible to save the PSPP file in
    LibreOffice Calc to do it.
    Actually, I use R to do the job.

    Thank you

    Denis Bergeron

    _______________________________________________
    Pspp-users mailing list
    Pspp-users@gnu.org
    https://lists.gnu.org/mailman/listinfo/pspp-users



_______________________________________________
Pspp-users mailing list
Pspp-users@gnu.org
https://lists.gnu.org/mailman/listinfo/pspp-users

--

Alan D. Mead, Ph.D.
President, Talent Algorithms Inc.

+815.588.3846 (Office)
+267.334.4143 (Mobile)

http://www.alanmead.org

Announcing the Journal of Computerized Adaptive Testing (JCAT), a
peer-reviewed electronic journal designed to advance the science and
practice of computerized adaptive testing:http://www.iacat.org/jcat


_______________________________________________
Pspp-users mailing list
Pspp-users@gnu.org
https://lists.gnu.org/mailman/listinfo/pspp-users

--

Alan D. Mead, Ph.D.
Assistant Professor
Industrial and Organizational Psychology Program
Department of Psychology
Lewis College of Human Sciences
Illinois Institute of Technology
3101 South Dearborn, 2nd floor
Chicago IL 60616

+312.567.5933 (Campus)
+815.588.3846 (Home Office)
+267.334.4143 (Mobile)
+312.567.3493 (Fax)

http://www.iit.edu/~mead
http://www.alanmead.org

Announcing the Journal of Computerized Adaptive Testing (JCAT), a
peer-reviewed electronic journal designed to advance the science and
practice of computerized adaptive testing: http://www.iacat.org/jcat

_______________________________________________
Pspp-users mailing list
Pspp-users@gnu.org
https://lists.gnu.org/mailman/listinfo/pspp-users

Reply via email to