Skip to content
Prev 166762 / 398502 Next

lm: how are polynomial functions interpreted?

[E] Y = a + b*sin(d*x+phi)

isn't a linear model and therefore can't be estimated with lm()  --  
you will need
some heavier artillery.  Linear as in lm() means "linear in parameters."

(As it happens, I'm adapting Gordon Smyth's pronyfreq S code for the  
above
problem this afternoon, and have been wondering why someone else hasn't
already done this?  Any clues?


url:    www.econ.uiuc.edu/~roger            Roger Koenker
email    rkoenker at uiuc.edu            Department of Economics
vox:     217-333-4558                University of Illinois
fax:       217-244-6678                Champaign, IL 61820
On Jan 12, 2009, at 4:57 PM, Carl Witthoft wrote: