I used inverse link functions,
ilink <- family(gam_model)$linkinv
for create time series interaction graph, and it works wonderful.
I replace my model to gamm model, for consider autocorrelation in my model. Is it possible to use inverse link function on gamm model? I tried
ilink <- family(gamm_model)$linkinv
ilink <- family(gamm_model$gam)$linkinv
ilink <- family(gamm_model$lme)$linkinv
But for all the options it show the errors:
Error in UseMethod("family") : no applicable method for 'family' applied to an object of class "c('gamm', 'list')"
Error in UseMethod("family") : no applicable method for 'family' applied to an object of class "gam"
Error in UseMethod("family") : no applicable method for 'family' applied to an object of class "lme"
The second option is surprising because it works on the origin gam model, calss "gam"
Thank you Dvora