which anova model should be taken?
0
0
Entering edit mode
8.8 years ago

I'm very new in the field I'm working now and have a simple question:

If I'm given such following data:

conds <- rep(c("old","young","kid"),each=9)
measures <- rep(rep(c("weight","height","heartbeats"),each=3),3)
values <- c(sample(50:100,9),sample(150:190,9),sample(60:120,9),
            sample(50:110,9),sample(150:200,9),sample(60:120,9),
            sample(5:50,9),sample(50:150,9),sample(60:100,9))
d <- data.frame(measures,conds,values)

How can I do test the differences between old vs young, old vs kid and kid vs young considering all other measures together?

Thanks,

Maah

anova statistics • 1.5k views
ADD COMMENT
1
Entering edit mode

This is not an bioinformatics question, a better place to ask (and search for answers before asking) is the CrossValidated Stack Exchange forum. And even if you ask there, you should elaborate more on your question.

Anyway, generally speaking, you have to fit a linear model (?lm in R), specify a contrasts matrix with the comparison you are interested, and test with anova.

ADD REPLY

Login before adding your answer.

Traffic: 2510 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6