Liaw, Andy
2004-Aug-03 18:18 UTC
[R] Adjusting two continuous variables by one continuous vari able
Graphically, you can use coplot() or lattice to see how the relationship between height and weight changes with age. With a linear model, you can do something like: lm(height ~ weight * age, ...) and work out the interpretation of the coefficients. HTH, Andy> From: Peter Tait > > Hi, > > I want to look at the relationship between 2 > continuous/quantitative variables while adjusting for a third > continuous variable. For example: relationship between height > and weight adjusted for age. > As I understand it using a glm would work if I had a > categorical variable (I could make age into a categories) but > I am interested to know if anyone knows how I can do this > analysis with out making age into categories. > > Any help would be appreciated. > Cheers > Peter
Possibly Parallel Threads
- Adjusting two continuous variables by one continuous variable
- selecting unique columns of a matrix/data frame
- defining a template for functions via do.call and substit ute.
- writing a panel function in coplot for displaying a non-linear regression model graphically
- how to use the randomForest and rpart function?