Hi!
I'm trying to do a linear regression while controlling for several variables (gender, age, etc). What's the process for doing that?
Thank you so much!
How do I control for variables in a linear regression?
Re: How do I control for variables in a linear regression?
hi,
you just add them in as factors or covariates.
cheers
jonathon
you just add them in as factors or covariates.
cheers
jonathon
Re: How do I control for variables in a linear regression?
Got it, thank you so much!
Re: How do I control for variables in a linear regression?
actually sam, what i've said isn't quite correct. you can easily control for continuous variables by including them as a covariate in a linear regression. but if you want to include 'random factors', you'll need to use the 'mixed effects models' in GAMLj. you can read up on the difference between fixed and random factors, and GAMLj will be the ticket.
cheers
jonathon
cheers
jonathon