Skip to content
Prev 1504 / 20628 Next

using glmer with user-defined link function

dear all,
I am trying to use an user-specified link function in glmer() (via the 
argument family), but the error is

Error in famType(glmFit$family) : unknown link: ?my_link?

my_link is a proper link function (of class "link-glm") which works 
correctly with glm() and also with MASS::glmmPQL()

It appears that the function lme4::famType() checks for the name by 
comparing it with the names in "famNms" which includes "gaussian", 
"binomial", "Gamma", ... however I do not know whether it is sufficient 
to include "my_link" in famNms, and possibly I do not how to do it.. :-)

many thanks,
vito