Oscar Saenz de Miera
2010-May-03 09:20 UTC
[R] Plotting the explanatory against the dependent in a GAM
? To whoever it may correspond, My name is Oscar Saenz and I am working on my thesis in Spain. I am using GAMs in "R" and, now that I have estimated my models, I need to plot the predicted smooth functions against the dependent variable (just as in Carlslaw et al. 2007, fig. 1*). Otherwise, I'd like to know how to plot the smoothed predictor variable values against the partial residuals. Thank you for taking the time to read my message. Any?help is gratefully appreciated, Oscar * Carslaw, D., Beevers, S.,?Tate, J. 2007. Modelling and assessing trends in traffic-related emissions using a generalised additive modelling approach. Atmospheric Environment 41 (2007) 5289?5299
Thomas Stewart
2010-May-03 14:00 UTC
[R] Plotting the explanatory against the dependent in a GAM
See example(gam) particularly plot(gam.object,se=TRUE). On Mon, May 3, 2010 at 5:20 AM, Oscar Saenz de Miera <saenzo68@yahoo.com>wrote:> > To whoever it may correspond, > > My name is Oscar Saenz and I am working on my thesis in Spain. > > I am using GAMs in "R" and, now that I have estimated my models, I need to > plot the predicted smooth functions against the dependent variable (just as > in Carlslaw et al. 2007, fig. 1*). > > Otherwise, I'd like to know how to plot the smoothed predictor variable > values against the partial residuals. > > Thank you for taking the time to read my message. Any help is gratefully > appreciated, > > Oscar > > * Carslaw, D., Beevers, S., Tate, J. 2007. Modelling and assessing trends > in traffic-related emissions using a generalised additive modelling > approach. Atmospheric Environment 41 (2007) 5289–5299 > > > > ______________________________________________ > R-help@r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide > http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code. >[[alternative HTML version deleted]]