state_space: Describe a state space

View source: R/class_model.R

state_spaceR Documentation

Describe a state space

Description

Names the model's state variables and lists the values each may take. Supply this object to micsim_model().

Usage

state_space(...)

Arguments

...

Named character vectors, one per state variable.

Details

The state space contains all combinations of the supplied values. For example, two sexes, three nationalities and two parity values give twelve states. A label such as "f/DE/1" follows the order of the arguments.

Values must be distinct, both within and across variables. Avoid "/" inside a value because that character separates label components.

Value

An object of class micsim_state_space: the named list of state-variable values.

See Also

micsim_model(), MicSim-concepts

Examples

state_space(sex = c("m", "f"), nat = c("DE", "AT"), fert = c("0", "1"))


MicSim documentation built on Dec. 2, 2026, 1:09 a.m.