[R] plot gam object

Liaw, Andy andy_liaw at merck.com
Mon Mar 7 16:44:44 CET 2005


The `scale' argument to plot.gam() needs to be a single number, not a
vector.  Is that what you've done?  You have not given enough detail, and we
are left to guess.  Please try to follow the posting guide.

All packages on CRAN are available in _source_ form.  (That's the way
packages are submitted to CRAN.)  Just download the .tar.gz version and
unpack that, then look in the src/ subdirectory for C/Fortran/C++ code.

Andy

> From: cperoni at racine.ra.it
> 
> Dear R help,
> 
> I am fitting a gam model with package GAM ( I use lo() to fit 
> 2 non-parametric 
> additive components).
> 
> When I plot the GAM object, along with the graphics window 
> displaying plots of 
> each components, I read the following warnings at the prompt: 
> 3: the condition has length 1 and only the first element will 
> be used in: if 
> (scale2 < scale) rep(mean(ylim), 2) + ((ylim - mean(ylim)) *  
> 4: number of items to replace is not a multiple of 
> replacement length .
> 
> I am changing the scale parameter but I still get the same warnings. 
> 
> I have no idea of the meaning of the warnings, I would be 
> grateful if you could 
> help.
> 
> Is it possible to find a C code of th ebackfitting algorithm?
> 
> Many thanks,
> 
> Chiara
> 
> -----------------------
> 
> Chiara Peroni
> University of York & Bologna
> 
> ______________________________________________
> 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
> 
> 
>




More information about the R-help mailing list