Skip to content
Prev 207467 / 398506 Next

How to define degree=1 in mgcv

On Monday 25 January 2010 02:40, hellen lee wrote:
gam(y~x,data=data1) 

or

gam(y~s(x,sp=1e6),data=data1)

you might need to increase the value supplied in `sp' in order to get the EDF 
for the smooth term close enough to 1 for your liking.

best,
Simon