Skip to content
Back to formatted view

Raw Message

Message-ID: <511DC695.4050503@ymail.com>
Date: 2013-02-15T05:24:37Z
From: Pascal Oettli
Subject: lm regression query
In-Reply-To: <CAJMZ3ccFf2j6pOGZih0SNNDgMom5jW0oNAn=UXjnJXBTZTVPGw@mail.gmail.com>

Hi,

Did you read the help file? Particularly the section "Details".

?lm

Regards,
Pascal

Le 15/02/2013 08:55, email a ?crit :
> Hello:
>
> I have a 4-column dataset: Crime, Education, Urbanization, Age. I want to
> construct a multiple linear regression to find the effect of Education,
> Urbanization, and Age on Crime"
>
> lm(Crime ~ Education + Urbanization + Age)
>
> If I use + in above statement, does it mean it will build a model to find
> the relationship between Crime and Education when Urbanization and Age are
> held constant?
>
> What would be the difference if I drop the term Urbanization + Age ?
>
> lm(Crime ~ Education)
>
> Regards:
> John
>
> 	[[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.
>