Entering edit mode
8.8 years ago
maahpishanu
•
0
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
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.