github - Error in model selection (gamm4) dredge function (MuMIn R package): family not recognised, model skipped -
i trying model selection generalized additive mixed models (made using gamm4 using mumin package in r. trying follow this piece of literature model selection mumin , gamm4.
i creating model 9 variables, , random individual effect - looks likes this:
library(gamm4) library(mumin) southfull = gamm4(otowidth ~ s(ages) + lagfinfsldat_annests + fsl_months_feb + lagfsldat_annual + lagfsldat_spring + lagfsl_months_oct+ finfsldat_summerdat + finfsldat_autumndat + lagfsl_months_nov , random = ~(1|fishname), data = south)
but when try use dredge
function, fails error message:
(dd <- dredge(global.model=southfull)) error in dredge(global.model = southfull) : result empty in addition: there 50 or more warnings (use warnings() see first 50) > warnings() warning messages: 1: in gamm4::gamm4(...) : family not recognized (model 1 skipped) ... 50: in gamm4::gamm4(...) : family not recognized (model 50 skipped)
is due problem mumin not recognizing gamm4 model family?
full code & data can found @ github repository , specific issue in code gamm_analysis.r, specific warnings found @ line 81.
thank in advance
Comments
Post a Comment