Re: [R] plotting additive ns components

2010-01-28 Thread Thomas Lumley
On Wed, 27 Jan 2010, David Winsemius wrote: On Jan 27, 2010, at 9:09 PM, GlenB wrote: I have an additive model of the following form : zmdlfit <- lm(z~ns(x,df=6)+ns(y,df=6)) I can get the fitted values and plot them against z easily enough, but I also want to both obtain and plot the two

Re: [R] plotting additive ns components

2010-01-27 Thread John Fox
p@r-project.org > Subject: [R] plotting additive ns components > > > > I have an additive model of the following form : > > zmdlfit <- lm(z~ns(x,df=6)+ns(y,df=6)) > > I can get the fitted values and plot them against z easily enough, but I > also want to both

Re: [R] plotting additive ns components

2010-01-27 Thread Bill.Venables
--- From: r-help-boun...@r-project.org [mailto:r-help-boun...@r-project.org] On Behalf Of GlenB Sent: Thursday, 28 January 2010 12:09 PM To: r-help@r-project.org Subject: [R] plotting additive ns components I have an additive model of the following form : zmdlfit <- lm(z~ns(x,df=6)+ns(y,df

Re: [R] plotting additive ns components

2010-01-27 Thread David Winsemius
On Jan 27, 2010, at 9:09 PM, GlenB wrote: I have an additive model of the following form : zmdlfit <- lm(z~ns(x,df=6)+ns(y,df=6)) I can get the fitted values and plot them against z easily enough, but I also want to both obtain and plot the two additive components (the estimates of the

[R] plotting additive ns components

2010-01-27 Thread GlenB
I have an additive model of the following form : zmdlfit <- lm(z~ns(x,df=6)+ns(y,df=6)) I can get the fitted values and plot them against z easily enough, but I also want to both obtain and plot the two additive components (the estimates of the two additive terms on the RHS) I've been looking