Skip to content

first time poster

2 messages · rilleyel, jdeisenberg

#
hi, so, please bear with me as I am new to the wonderful world of
computers...

i am trying to answer the following question, and having no luck:
Focus your analysis on a comparison between respondents labeled ?Low? (coded
1) on attend4 and respondents labeled ?High? (coded 4). Then, examine the
variance of distributions. That is, run a command "var.test".
I feel like I need to recode somehow and create 2 new variables, one for the
low responses, one for the high responses. I do not know how to 'get into'
the variable to deal with just the answers...

I hope this makes enough sense for someone out there to help me
1 day later
#
rilleyel wrote:
I'm  not sure I understand what you want, but I'm guessing you have a data
frame with data like this, where the "attend4" column has the high or low
ratings, and you want to compare variances on some other variable (called
"score" in this example):
attend4 score                                                  
1       1    20                                                  
2       4    30                                                  
3       1    21                                                  
4       1    22                                                  
5       4    24

To separate the scores for people who had low scores vs. high scores, do
something like this:
[1] 20 21 22
[1] 30 24

Now you can do a var.test on lows vs. highs.

Hope this helps.