[R] plotting additive ns components

Thomas Lumley tlumley at u.washington.edu
Thu Jan 28 16:49:51 CET 2010


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 additive components (the 
>> estimates
>> of the two additive terms on the RHS)
>>

?termplot.

      -thomas

Thomas Lumley			Assoc. Professor, Biostatistics
tlumley at u.washington.edu	University of Washington, Seattle



More information about the R-help mailing list