[R] How to fit an linear model withou intercept
David Barron
mothsailor at googlemail.com
Thu Aug 23 12:38:46 CEST 2007
A number of alternatives, such as:
lm(y ~ 0 + x)
lm(y ~ x -1)
See ?formula
On 8/23/07, 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.
>
--
=================================
David Barron
Said Business School
University of Oxford
Park End Street
Oxford OX1 1HP
More information about the R-help
mailing list