[R] How to fit an linear model withou intercept
John Kane
jrkrideau at yahoo.ca
Thu Aug 23 13:19:44 CEST 2007
?lm
Details
....
"A formula has an implied intercept term. To remove
this use either y ~ x - 1 or y ~ 0 + x. See formula
for more details of allowed formulae. "
Is this what you want?
--- Michal Kneifl <xkneifl at mendelu.cz> wrote:
> Please could anyone help me?
> How can I fit a linear model where an intercept has
> no sense?
> Thanks in advance..
>
> Michael
>
> ______________________________________________
> R-help at stat.math.ethz.ch 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.
>
More information about the R-help
mailing list