Learn R Programming

mapbayr (version 0.10.2)

eta: Generate a vector of "ETA"

Description

Generate a vector of "ETA" values. If x is a mrgsolve model, these will be extracted from values defined in $PARAM. Otherwise, any numeric values passed to x and ... as vector(s) or list(s) will be coerced as a single vector. Alternatively, if x and ... are missing, generate a vector of ETA equal to val of length n.

Usage

eta(x, ..., n, val = 0)

Value

a single named vector of numeric

Arguments

x

either a mrgsolve model object, or a numeric

...

additional numeric(s)

n, val

generate a sequence of val of length n

Examples

Run this code
# Extract ETA from the model
mod <- exmodel()
eta(mod)

# Coerce numeric values
eta(0.1, 0.2, c(0.3, 0.4), list(0.5, 0.6))
eta(rnorm(4))

# Generate a sequence from scratch
eta(n = 3)
eta(n = 3, val = 0.001)

Run the code above in your browser using DataLab