Re: [R] how to fit y=m*x

From: Christophe Pallier <christophe_at_pallier.org>
Date: Thu, 14 Jun 2007 20:57:20 +0200

summary(lm(y ~ x - 1))

Use google (R "linear regression without intercept") Read the posting guide.

There.

On 6/14/07, genomenet_at_gmail.com <genomenet_at_gmail.com> wrote:
>
> Hi There,
>
> I have a set of data (xi,yi).I want to fit them with the equation
> y=mx.
>
> note: in the above equation, there is no intercept.
>
> I don't know how to use common software such as R , matlab, sas, or
> spss to do this kind of regression.
>
> Does anyone know how to do this?
>
> I know it is easy to use least square method to do this by
> programming. But I want to find if there exists some common software
> which can do this.
>
> Thank you very much.
>
> Van
>
> ______________________________________________
> 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.
>

-- 
Christophe Pallier (http://www.pallier.org)

	[[alternative HTML version deleted]]

______________________________________________
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.
Received on Thu 14 Jun 2007 - 19:04:10 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 Thu 14 Jun 2007 - 20:33:46 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.