zero_re: Zero out random effects in a model object

zero_reR Documentation

Zero out random effects in a model object

Description

Sets all elements of the OMEGA or SIGMA matrix to zero.

Usage

zero_re(.x, ...)

## S4 method for signature 'mrgmod'
zero_re(.x, ...)

Arguments

.x

a model object.

...

which matrix to zero out; pass omega to just zero out omega, sigma to just zero out sigma; passing nothing will zero out both.

Value

An updated object with elements of OMEGA and/or SIGMA set to zero.

Examples

mod <- house()
revar(mod)
mod <- zero_re(mod)
revar(mod)

## Not run: 
mod <- modlib("popex", compile = FALSE)
mod <- zero_re(mod, omega)
revar(mod)

## End(Not run)

mrgsolve documentation built on Oct. 18, 2024, 5:12 p.m.

Related to zero_re in mrgsolve...