From bhs2 at mevik.net  Tue Jun 13 13:35:28 2006
From: bhs2 at mevik.net (=?iso-8859-1?q?Bj=F8rn-Helge_Mevik?=)
Date: Tue, 13 Jun 2006 13:35:28 +0200
Subject: [Rd] poly(*,*) in lm() (PR#8972)
In-Reply-To: <20060613103812.870F74C890@slim.kubism.ku.dk>
	(jenskeienburg@gmx.de's
	message of "Tue, 13 Jun 2006 12:38:12 +0200 (CEST)")
References: <20060613103812.870F74C890@slim.kubism.ku.dk>
Message-ID: <m0r71tffun.fsf@bar.nemo-project.org>

> I used the function lm() to calculate the coefficients of a polynome. If I used
> the function poly(t,2) to denote a polynome of form 1 + x + x^2, the
> coefficients are wrong.

If you take a look at the manual page for poly, you will find that
poly (by default) will calculate _orthogonal_ polynomials, which are
not the same as 1, x, x^2, etc.

-- 
Bj?rn-Helge Mevik



[Rd] poly(*,*) in lm() (PR#8972)
=?iso-8859-1?q?Bj=F8rn-Helge_Mevik?=