I'm relatively new to R and still struggle with understanding some of the documentation. I'm working with a glmer analysis, and my goal is to specify starting values for both theta (intercept) and beta (fixed effects).
Can anyone please provide an example of what the code should look like for one beta and multiple betas?
I've looked at the glmer documentation, which says "start
a named list of starting values for the parameters in the model, or a numeric vector. A numeric start argument will be used as the starting value of theta. If start is a list, the theta element (a numeric vector) is used as the starting value for the first optimization step (default=1 for diagonal elements and 0 for off-diagonal elements of the lower Cholesky factor); the fitted value of theta from the first step, plus start[["fixef"]], are used as starting values for the second optimization step. If start has both fixef and theta elements, the first optimization step is skipped. For more details or finer control of optimization, see modular."
I have successfully specified the theta start value, but I do not know how to specify both theta and beta (or multiple betas).
Glucose1 <- glmer(GlucoseYN ~ 1 + (1|Subject), data=LongFormat, family = "binomial", glmerControl(optimizer = "bobyqa", optCtrl = list(maxfun = 10000000)))
getME(Glucose1, c("theta","beta"))
# theta = 3.276187, beta = -0.3515557
Glucose1b <- glmer(GlucoseYN ~ 1 + (1|Subject), data=LongFormat, family = "binomial", start = 3.276187, glmerControl(optimizer = "bobyqa", optCtrl = list(maxfun = 10000000)))