[R] polynomials transformation

Chuck Cleland ccleland at optonline.net
Wed Nov 9 11:04:50 CET 2005


The coefficients are in the attribute list:

 > x <- rnorm(100)
 > attributes(poly(x, 2))$coefs
$alpha
[1] -0.1585783 -0.1193990

$norm2
[1]   1.0000 100.0000 110.3589 254.5965

?attributes

Abd. Rahman Kassim wrote:
> Dear All,
> 
> Need some help in polynomials transformation to get the coefficients. I have tried "poly.transform" as applied in S-plus but it does not work.
> 
> Thanks in advanced for any helps.
> 
> Regards.
> 
> 
> Abd. Rahman Kassim (PhD)
> Head Forest Ecology Branch
> Forest Management & Ecology Program
> Forestry and Conservation Division
> Forest Research Institute Malaysia
> Kepong 52109
> Selangor, Malaysia
> 
> *****************************************
> 
> Checked by TrendMicro Interscan Messaging Security.
> For any enquiries, please contact FRIM IT Department.
> *****************************************
> 	[[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
> 

-- 
Chuck Cleland, Ph.D.
NDRI, Inc.
71 West 23rd Street, 8th floor
New York, NY 10010
tel: (212) 845-4495 (Tu, Th)
tel: (732) 452-1424 (M, W, F)
fax: (917) 438-0894




More information about the R-help mailing list