how to create a new file

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

how to create a new file

Keli Saporta

Dear list

I have a file in which every participant has four recodes, one for each condition and the DV is RT .  Thus I have to change the file so that it includes only one recode for each participants so that rt will become a within subject variable.

How can I do it?

 

Here is an example of the file

Part       cond      rt

1.00        1.00        202.00

1.00        2.00        303.00

1.00        3.00        200.00

1.00        4.00        209.00

2.00        1.00        199.00

2.00        2.00        202.00

2.00        3.00        303.00

2.00        4.00        200.00

3.00        1.00        209.00

3.00        2.00        303.00

3.00        3.00        200.00

3.00        4.00        209.00

4.00        1.00        291.00

4.00        2.00        200.00

4.00        3.00        189.00

4.00        3.00        202.00

5.00        1.00        303.00

5.00        2.00        200.00

5.00        3.00        209.00

5.00        4.00        199.00

 

 

 

Thank you

Dr. Saporta Kelly

Department of Education and Psychology

The open university of Israel
Ranana

Israel
Telephone: +972-9-7781456
E-mail:
[hidden email]

Home Page: http://www.openu.ac.il/personal_sites/kelli-saporta/

 

 

===================== To manage your subscription to SPSSX-L, send a message to [hidden email] (not to SPSSX-L), with no body text except the command. To leave the list, send the command SIGNOFF SPSSX-L For a list of commands to manage subscriptions, send the command INFO REFCARD
Reply | Threaded
Open this post in threaded view
|

Re: how to create a new file

Bruce Weaver
Administrator
https://www.ibm.com/support/knowledgecenter/en/SSLVMB_25.0.0/statistics_reference_project_ddita/spss/base/syn_casestovars.html

Example:
CASESTOVARS /ID idvar /INDEX var1.

Before reshaping the data, I suggest formatting your variables so as to not
display unneeded decimals.  

FORMATS cond (F1) / Part rt (F5.0).
CASESTOVARS
 /ID idvar
 /INDEX var1
 /SEPARATOR = ""
.




Keli Saporta wrote

> Dear list
> I have a file in which every participant has four recodes, one for each
> condition and the DV is RT .  Thus I have to change the file so that it
> includes only one recode for each participants so that rt will become a
> within subject variable.
> How can I do it?
>
> Here is an example of the file
> Part       cond      rt
> 1.00        1.00        202.00
> 1.00        2.00        303.00
> 1.00        3.00        200.00
> 1.00        4.00        209.00
> 2.00        1.00        199.00
> 2.00        2.00        202.00
> 2.00        3.00        303.00
> 2.00        4.00        200.00
> 3.00        1.00        209.00
> 3.00        2.00        303.00
> 3.00        3.00        200.00
> 3.00        4.00        209.00
> 4.00        1.00        291.00
> 4.00        2.00        200.00
> 4.00        3.00        189.00
> 4.00        3.00        202.00
> 5.00        1.00        303.00
> 5.00        2.00        200.00
> 5.00        3.00        209.00
> 5.00        4.00        199.00
>
>
>
> Thank you
> Dr. Saporta Kelly
> Department of Education and Psychology
> The open university of Israel
> Ranana
> Israel
> Telephone: +972-9-7781456
> E-mail:

> kelisa@.ac

> <mailto:

> kelisa@.ac

> >
> Home Page: http://www.openu.ac.il/personal_sites/kelli-saporta/
>
>
>
> =====================
> To manage your subscription to SPSSX-L, send a message to

> LISTSERV@.UGA

>  (not to SPSSX-L), with no body text except the
> command. To leave the list, send the command
> SIGNOFF SPSSX-L
> For a list of commands to manage subscriptions, send the command
> INFO REFCARD





-----
--
Bruce Weaver
[hidden email]
http://sites.google.com/a/lakeheadu.ca/bweaver/

"When all else fails, RTFM."

NOTE: My Hotmail account is not monitored regularly.
To send me an e-mail, please use the address shown above.

--
Sent from: http://spssx-discussion.1045642.n5.nabble.com/

=====================
To manage your subscription to SPSSX-L, send a message to
[hidden email] (not to SPSSX-L), with no body text except the
command. To leave the list, send the command
SIGNOFF SPSSX-L
For a list of commands to manage subscriptions, send the command
INFO REFCARD
--
Bruce Weaver
bweaver@lakeheadu.ca
http://sites.google.com/a/lakeheadu.ca/bweaver/

"When all else fails, RTFM."

PLEASE NOTE THE FOLLOWING: 
1. My Hotmail account is not monitored regularly. To send me an e-mail, please use the address shown above.
2. The SPSSX Discussion forum on Nabble is no longer linked to the SPSSX-L listserv administered by UGA (https://listserv.uga.edu/).