glmmrBase
Generalised Linear Mixed Models in R
Description
Specification, analysis, simulation, and fitting of generalised linear mixed models. Includes Markov Chain Monte Carlo Maximum likelihood model fitting for a range of models, non-linear fixed effect specifications, a wide range of flexible covariance functions that can be combined arbitrarily, robust and bias-corrected standard error estimation, power calculation, data simulation, and more.
Downloads
718
Last 30 days
5114th
2.2K
Last 90 days
7.7K
Last year
Trend: +16% (30d vs prior 30d)
CRAN Check Status
Show all 14 flavors
| Flavor | Status |
|---|---|
| r-devel-linux-x86_64-debian-clang | OK |
| r-devel-linux-x86_64-debian-gcc | OK |
| r-devel-linux-x86_64-fedora-clang | OK |
| r-devel-linux-x86_64-fedora-gcc | OK |
| r-devel-macos-arm64 | OK |
| r-devel-windows-x86_64 | OK |
| r-oldrel-macos-arm64 | NOTE |
| r-oldrel-macos-x86_64 | ERROR |
| r-oldrel-windows-x86_64 | NOTE |
| r-patched-linux-x86_64 | OK |
| r-release-linux-x86_64 | OK |
| r-release-macos-arm64 | OK |
| r-release-macos-x86_64 | ERROR |
| r-release-windows-x86_64 | OK |
Check details (8 non-OK)
for GNU extensions in Makefiles
GNU make is a SystemRequirements.
installed package size
installed size is 170.2Mb
sub-directories of 1Mb or more:
libs 168.9Mb
examples
Running examples in ‘glmmrBase-Ex.R’ failed The error most likely occurred in: > ### Name: Model > ### Title: A GLMM Model > ### Aliases: Model > > ### ** Examples > > > ## ------------------------------------------------ > ## Method `Model$new` > ## ------------------------------------------------ > > ## Don't show: > setParallel(FALSE) > ## End(Don't show) > # For more examples, see the examples for MCML. > > #create a data frame describing a cross-sectional parallel cluster > #randomised trial > df <- nelder(~(cl(10)*t(5)) > ind(10)) > df$int <- 0 > df[df$cl > 5, 'int'] <- 1 > mod <- Model$new( + formula = ~ factor(t) + int - 1 + (1|gr(cl)) + (1|gr(cl,t)), + data = df, + family = stats::gaussian() + ) > > # We can also include the outcome data in the model initialisation. > # For example, simulating data and creating a new object: > df$y <- mod$sim_data() > > mod <- Model$new( + formula = y ~ factor(t) + int - 1 + (1|gr(cl)) + (1|gr(cl,t)), + data = df, + fami ...[truncated]... numeric(Orange$Tree) > ##D > ##D # Here we can specify the model as a function. > ##D > ##D model <- Model$new( > ##D circumference ~ Asym/(1 + exp((xmid - (age))/scal)) - 1 + (Asym|gr(Tree)), > ##D data = Orange, > ##D family = gaussian(), > ##D mean = c(200,725,350), > ##D covariance = c(500), > ##D var_par = 50 > ##D ) > ##D > ##D # for this example, we will use MCEM with adaptive MCMC sample sizes > ##D > ##D nfit <- model$MCML(method = "mcem.adapt", iter.sampling = 1000) > ##D > ##D summary(nfit) > ##D summary(nm1) > ##D > ##D > ## End(Not run) > > ## ------------------------------------------------ > ## Method `Model$fit` > ## ------------------------------------------------ > > # Simulated trial data example using REML > data(SimTrial,package = "glmmrBase") > fit1 <- Model$new( + formula = y ~ int + factor(t) - 1 + (1|grlog(cl)*ar0log(t)), + data = SimTrial, + family = gaussian() + )$fit(reml = TRUE) Error: Exponent fail: nan^1.000000 Execution halted
for GNU extensions in Makefiles
GNU make is a SystemRequirements.
installed package size
installed size is 179.8Mb
sub-directories of 1Mb or more:
libs 178.6Mb
for GNU extensions in Makefiles
GNU make is a SystemRequirements.
installed package size
installed size is 5.7Mb
sub-directories of 1Mb or more:
libs 4.5Mb
examples
Running examples in ‘glmmrBase-Ex.R’ failed The error most likely occurred in: > ### Name: Model > ### Title: A GLMM Model > ### Aliases: Model > > ### ** Examples > > > ## ------------------------------------------------ > ## Method `Model$new` > ## ------------------------------------------------ > > ## Don't show: > setParallel(FALSE) > ## End(Don't show) > # For more examples, see the examples for MCML. > > #create a data frame describing a cross-sectional parallel cluster > #randomised trial > df <- nelder(~(cl(10)*t(5)) > ind(10)) > df$int <- 0 > df[df$cl > 5, 'int'] <- 1 > mod <- Model$new( + formula = ~ factor(t) + int - 1 + (1|gr(cl)) + (1|gr(cl,t)), + data = df, + family = stats::gaussian() + ) > > # We can also include the outcome data in the model initialisation. > # For example, simulating data and creating a new object: > df$y <- mod$sim_data() > > mod <- Model$new( + formula = y ~ factor(t) + int - 1 + (1|gr(cl)) + (1|gr(cl,t)), + data = df, + fami ...[truncated]... numeric(Orange$Tree) > ##D > ##D # Here we can specify the model as a function. > ##D > ##D model <- Model$new( > ##D circumference ~ Asym/(1 + exp((xmid - (age))/scal)) - 1 + (Asym|gr(Tree)), > ##D data = Orange, > ##D family = gaussian(), > ##D mean = c(200,725,350), > ##D covariance = c(500), > ##D var_par = 50 > ##D ) > ##D > ##D # for this example, we will use MCEM with adaptive MCMC sample sizes > ##D > ##D nfit <- model$MCML(method = "mcem.adapt", iter.sampling = 1000) > ##D > ##D summary(nfit) > ##D summary(nm1) > ##D > ##D > ## End(Not run) > > ## ------------------------------------------------ > ## Method `Model$fit` > ## ------------------------------------------------ > > # Simulated trial data example using REML > data(SimTrial,package = "glmmrBase") > fit1 <- Model$new( + formula = y ~ int + factor(t) - 1 + (1|grlog(cl)*ar0log(t)), + data = SimTrial, + family = gaussian() + )$fit(reml = TRUE) Error: Exponent fail: nan^1.000000 Execution halted
Check History
ERROR 10 OK · 2 NOTE · 0 WARNING · 2 ERROR · 0 FAILURE Apr 1, 2026
examples
Running examples in ‘glmmrBase-Ex.R’ failed The error most likely occurred in: > ### Name: Model > ### Title: A GLMM Model > ### Aliases: Model > > ### ** Examples > > > ## ------------------------------------------------ > ## Method `Model$new` ...[truncated]... ng REML > data(SimTrial,package = "glmmrBase") > fit1 <- Model$new( + formula = y ~ int + factor(t) - 1 + (1|grlog(cl)*ar0log(t)), + data = SimTrial, + family = gaussian() + )$fit(reml = TRUE) Error: Exponent fail: nan^1.000000 Execution halted
installed package size
installed size is 170.2Mb
sub-directories of 1Mb or more:
libs 168.9Mb
installed package size
installed size is 179.8Mb
sub-directories of 1Mb or more:
libs 178.6Mb
installed package size
installed size is 5.7Mb
sub-directories of 1Mb or more:
libs 4.5Mb
NOTE 11 OK · 3 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Mar 10, 2026
installed package size
installed size is 170.2Mb
sub-directories of 1Mb or more:
libs 168.9Mb
installed package size
installed size is 175.4Mb
sub-directories of 1Mb or more:
libs 174.2Mb
installed package size
installed size is 5.7Mb
sub-directories of 1Mb or more:
libs 4.5Mb