create_state_dummies_from_vector: Create State Dummies from Vector
Description
Creates state dummies from vectors
Usage
create_state_dummies_from_vector(x, varname = "StateVar")
Value
A matrix where each column is a binary indicator for one state.
Arguments
- x
Vector representing the state variable.
- varname
Name of the state variable.