rfunction

binomial()$linkinv(fixef()): what exactly does these function are for when applied to mixed generalized analysis?


I was workinf on a dataset, trying re-perfomrming an already run statysical analysis and I met the following function:

binomial()$linkinv(fixef(m))

after running the following model

summary((m = glmer(var1 ~ str2 + (str2 | ID), single_data, family = binomial)))

My first question is what exactly does this functions is made for? Beacuse throgh other command lines the reciprocal code as well as a slightly modified code based always on it are also reported:

1) 1- binomial()$linkinv(fixef())
2) single_data$fit = binomial()$linkinv(model.matrix(m) %*% fixef(m)) #also the sense of the operator %*% is quite misterious too. 

Thanks for your answers


Solution

  • I agree with most of @Oliver's answer. I will add a few comments (since I had an answer partly composed already).

    I would be very wary of the script you are following: some parts look wrong (I could obviously be mistaken since these bits are taken completely out of context ...)

    PS these answers all have not much to do with runjags, which uses an entirely different model structure. Presumably glmer models are being fitted for comparison ...