Learn R Programming

mrgsolve (version 1.5.1)

zero_re: 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 mrgmod zero_re(.x, ...)

Value

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

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

Examples

Run this code

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

if (FALSE) {
mod <- modlib("popex", compile = FALSE)
mod <- zero_re(mod, omega)
revar(mod)
}

Run the code above in your browser using DataLab