rpietro / Infotrial

Analysis for infotrial application
1 stars 1 forks source link

T.Test #3

Closed lucaslentini closed 12 years ago

lucaslentini commented 12 years ago

Ricardo,

I am having trouble running a t.test!

I am trying as follows:

t.test(wouldyou~m1involved)

The error message is:

t.test(wouldyou~age) Error in t.test.formula(wouldyou ~ age) : grouping factor must have exactly 2 levels

Thank you!

rpietro commented 12 years ago

Lucas, before i answer this, I think that your folder got disconnected from mine, and so i can't see what you did. would go over the video again, and move the shared folder back into your computer

the disconnect usually happens when you change the folder name. so, would keep it the same

what the message below is saying is that your m1involved variable has more than two levels. this means you should check its code to see whether this is true by checking its class (should be a factor) and then making sure that there are only two levels

class (m1involved) levels(m1involved)

On Thu, Aug 9, 2012 at 6:28 PM, lucaslentini notifications@github.comwrote:

Ricardo,

I am having trouble running a t.test!

I am trying as follows:

t.test(wouldyou~m1involved)

The error message is:

t.test(wouldyou~age) Error in t.test.formula(wouldyou ~ age) : grouping factor must have exactly 2 levels

Thank you!

— Reply to this email directly or view it on GitHubhttps://github.com/rpietro/Infotrial/issues/3.