[R] summary vs anova

2011-12-19 Thread Brent Pedersen
Hi, I'm sure this is simple, but I haven't been able to find this in TFM, say I have some data in R like this (pasted here: http://pastebin.com/raw.php?i=sjS9Zkup): head(df) gender age smokes diseaseY 1 female 65 ever control 0.18 2 female 77 never control 0.12 3 male 40

[R] repeated measures setup

2011-03-28 Thread Brent Pedersen
hi, i have some data, a subset of which is pasted at the end of this message. i am trying to understand how to do repeated measures as our study design consists of a subject and up to 2 siblings. thus far, my model looks like this--with family_id indicating a sibling relationship: formula = y ~