Learn R Programming

dse (version 2007.7-1)

generateSSmodel: Randomly generate a state space model

Description

Randomly generate a state space model.

Usage

generateSSmodel(m,n,p, stable=FALSE)

Arguments

n,m,p
Input, state and output dimensions.
stable
TRUE or FALSE indicating if the model must be stable.

Value

  • An SS TSmodel.

concept

DSE

Details

Randomly generate a state space model. If stable is true then the largest root will have magnitude less than 1.0.

Examples

Run this code
z <-  generateSSmodel(2,3,1)

Run the code above in your browser using DataLab