Description Usage Arguments Value See Also Examples
View source: R/r2_sgv_est_Function.R
Fit a GLMM model with multivariate normal random effects using Penalized Quasi-Likelihood for mermod objects.
1 |
formula |
The lme4 model formula. |
family |
a family function of the error distribution and link function to be used in the model. |
data |
the dataframe containing the variables in the model. |
niter |
Maximum number of iterations to perform. |
verbose |
if TRUE, iterations are printed to console. |
A pseudo linear mixed model of class "lme" .
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | # Compare lmer PQL with lme PQL
library(MASS)
lmePQL = glmmPQL(y ~ trt + week + I(week > 2), random = ~ 1 | ID,
family = binomial, data = bacteria,
verbose = FALSE)
merPQL= pqlmer(y ~ trt + week + I(week > 2) + (1 | ID),
family = binomial, data = bacteria,
verbose = FALSE)
summary(lmePQL)
summary(merPQL)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.