[R] Introducing lags in my GAM

2010-10-05 Thread Oscar Saenz de Miera
To whom it may concern, This is Oscar Saenz. I am working on my thesis and wanted to ask for your help. I am using R to estimate a Generalized Additive Model where the concentration of a specific pollutant is explained by a series of variables. I need to introduce a lag of the regressand in my

[R] Plotting the explanatory against the dependent in a GAM

2010-05-03 Thread Oscar Saenz de Miera
  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,