Learn R Programming

sectorgap (version 0.1.0)

update_ssmodel: State space model update

Description

Updates the system matrices of a state space model.

Usage

update_ssmodel(pars, model, model_last, settings, df_set)

Value

The state space model object model with updates matrices.

Arguments

pars

named vector with all parameters

model

state space model object (unassigned)

model_last

state space model object (previous draw)

settings

list with model setting, in the format returned by the function initialize_settings

df_set

data frame with model settings

Details

data is preferably the output of funtion prepare_data.

Examples

Run this code
data("data_ch")
settings <- initialize_settings()
data <- prepate_data(
  settings = settings,
  tsl = data_ch$tsl,
  tsl_n = data_ch$tsl_n
)
model <- define_ssmodel(
  settings = settings, 
  data = data
)

Run the code above in your browser using DataLab