transpose data?

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

transpose data?

charlotte
This post was updated on .
Hi,

My data currently looks something like this:(please see below for an example) and I'm looking to analyse the mean percent of accuracy with (1,2,3) in the colour column each representing a category for the independent variable. I can't work out how to perform the necessary 'descriptives' for assessing normality prior to an anova etc, I believe I need to restructure the data in some manner so that I can do this but I can't work out how. Or maybe I don't need to restructure but I'm totally unsure how to assess this data for normality. Please help.

Colour Accuracy
1           1
1           1
1           0
1           1
1           0
1           1
2           1
2           0
2           1
2           0
2           1
2           1
3           0
3           1
3           1
3           1
3           1
3           1
3           0
3           1
3           0

Reply | Threaded
Open this post in threaded view
|

Re: transpose data?

David Marso
Administrator
Normality of what? You have a nominal variable and a 0/1 variable what is there to test?
And while we are on the subject, what makes you think ANOVA is the appropriate test here?
charlotte wrote
Hi,

My data currently looks something like this:(please see below for an example) and I'm looking to analyse the mean percent of accuracy with (1,2,3) in the colour column each representing a category for the independent variable. I can't work out how to perform the necessary 'descriptives' for assessing normality prior to an anova etc, I believe I need to restructure the data in some manner so that I can do this but I can't work out how. Or maybe I don't need to restructure but I'm totally unsure how to assess this data for normality. Please help.

Colour Accuracy
1           1
1           1
1           0
1           1
1           0
1           1
2           1
2           0
2           1
2           0
2           1
2           1
3           0
3           1
3           1
3           1
3           1
3           1
3           0
3           1
3           0
Please reply to the list and not to my personal email.
Those desiring my consulting or training services please feel free to email me.
---
"Nolite dare sanctum canibus neque mittatis margaritas vestras ante porcos ne forte conculcent eas pedibus suis."
Cum es damnatorum possederunt porcos iens ut salire off sanguinum cliff in abyssum?"
Reply | Threaded
Open this post in threaded view
|

Re: transpose data?

charlotte

Sorry just saw the avoiding small talk notice, will keep to the point. The data I'm working with is similar to this: http://computingforpsychologists.wordpress.com/2012/12/11/how-to-analyse-reaction-time-rt-data-part-1/ only the portion I'm working on is the accuracy section. I'm trying to work out what to do with the data to get mean accuracy(%) for each category(1,2,3) and to compare them & get descriptives etc. Sorry I meant Anova as an example of statistical analysis I'd run after, I shouldn't have specified.

If this doesn't make more sense let me know & I won't post again.
Reply | Threaded
Open this post in threaded view
|

Re: transpose data?

Bruce Weaver
Administrator
Okay.  Here's the example you showed in your first post:

Colour Accuracy
1           1
1           1
1           0
1           1
1           0
1           1
2           1
2           0
2           1
2           0
2           1
2           1
3           0
3           1
3           1
3           1
3           1
3           1
3           0
3           1
3           0

If I follow, this is raw accuracy data, with each line representing one trial in your experiment, and you want to end up with something that looks like this:

acc1 acc2 acc3
66.7  66.7 66.7

If that is what you want, look up AGGREGATE and CASESTOVARS, and study the examples.  

HINT 1:  Given that your variable are coded 1-0, the MEAN function in AGGREGATE will give you the proportion of scores that are 1s.  Multiply those proportions by 100 if you need to be report them as percentages.  

HINT 2:  I expect your file contains raw accuracy data for multiple subjects.  If so, you'll need two BREAK variables for the AGGREGATE command, the unique ID variable AND the colour variable.

HTH.


charlotte wrote
Sorry just saw the avoiding small talk notice, will keep to the point. The data I'm working with is similar to this: http://computingforpsychologists.wordpress.com/2012/12/11/how-to-analyse-reaction-time-rt-data-part-1/ only the portion I'm working on is the accuracy section. I'm trying to work out what to do with the data to get mean accuracy(%) for each category(1,2,3) and to compare them & get descriptives etc. Sorry I meant Anova as an example of statistical analysis I'd run after, I shouldn't have specified.

If this doesn't make more sense let me know & I won't post again.
--
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/).