[R] Error message when running gam (mgcv). object not found

Diego Pavon diego.pavonjordan at gmail.com
Fri Dec 11 10:25:38 CET 2015

Dear all

I am trying to fit gam to my data but it keeps giving me errors.

It does not find the covariate ArrivalTime even though it is clearly
defined in the data frame. It happens with any covariate that I put in the
s() term... And not only for this data set, but for any dataset that I try
to analyse.

Do you have any idea why I can't run gam? I can run perfectly any other
type of models (GLM, GLMM, ZIP...)..

Any help would be appreciated. Thank you very much.



*Diego Pavón Jordán*

*Finnish Museum of Natural History*
*PO BOX 17 *

*Helsinki. Finland*


> T1 <- gam(E1 ~ s(ArrivalTime), data = Owls)Error in as.matrix(x) : object 'ArrivalTime' not found> ls(Owls) [1] "ArrivalTime"        "BroodSize"          "FoodTreatment"      "LogNeg"
 [5] "NegPerChick"        "Nest"               "SexParent"
 [9] "Xcoord"             "Ycoord"

	[[alternative HTML version deleted]]

More information about the R-help mailing list