[R] Orthogonal polynomials used by R
petr@p|k@| @end|ng |rom prechez@@cz
Wed Nov 27 13:41:11 CET 2019
You could get answer quickly by searching net.
> -----Original Message-----
> From: R-help <r-help-bounces using r-project.org> On Behalf Of Ashim Kapoor
> Sent: Wednesday, November 27, 2019 12:55 PM
> To: R Help <r-help using r-project.org>
> Subject: [R] Orthogonal polynomials used by R
> Dear All,
> I have created a time trend by doing x<-1:93 because I have a time series
> with 93 data points. Next I did :-
> y = lm(series ~ poly(x,4))$residuals
> to detrend series.
> I choose this 4 as the order of my polynomial using cross validation/
> checking the absence of trend in the residuals so I think I have not
> this series.
> I wish to document the formula of poly(x,4). I am not able to find it in
> Can someone please tell me what the formula for the orthogonal
> polynomial used by R is ?
> Thank you,
> [[alternative HTML version deleted]]
> R-help using r-project.org mailing list -- To UNSUBSCRIBE and more, see
> PLEASE do read the posting guide http://www.R-project.org/posting-
> and provide commented, minimal, self-contained, reproducible code.
More information about the R-help