Re: [R] regression with categorical nuisance variable

From: Lao Meng <laomeng.3_at_gmail.com>
Date: Tue, 01 Mar 2011 08:52:06 +0800

You may try analysis of covariance.
But,as you say"There are no gender differences in age ",then why not combine 2 gender's age and ignore the gender?

2011/3/1 Jonathan DuBois <jonathan.m.dubois_at_gmail.com>

> Hi,
>
> I am new to R, so I am unsure of the formula to set up this analysis.
> I would like to run a linear model with a continuous dependent
> variable (brain volume) and a continuous independent variable (age)
> while controlling for a categorical nuisance variable (gender).
>
> Age and brain volume are correlated.
> There are no gender differences in age but there are significant
> gender differences in brain volume.
> Therefore, I would like to control for gender when assessing the
> association between brain volume and age.
>
> Any help would be very much appreciated.
>
> Jon
>
> ______________________________________________
> R-help_at_r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide
> http://www.R-project.org/posting-guide.html<http://www.r-project.org/posting-guide.html>
> and provide commented, minimal, self-contained, reproducible code.
>

        [[alternative HTML version deleted]]



R-help_at_r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. Received on Tue 01 Mar 2011 - 01:01:53 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Tue 01 Mar 2011 - 01:20:17 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive