opsr_prepare_coefs function

Prepares Coefficients for Likelihood Function

Prepares Coefficients for Likelihood Function

Extracts the coefficients for each regime

opsr_prepare_coefs(theta, nReg)

Arguments

  • theta: named coefficient vector as parsed from formula interface opsr.
  • nReg: integer number of regimes.

Returns

Named list of length nReg

Examples

sim_dat <- opsr_simulate() dat <- sim_dat$data model <- ys | yo ~ xs1 + xs2 | xo1 + xo2 start <- opsr(model, dat, .get2step = TRUE) opsr_prepare_coefs(start, 3)
  • Maintainer: Daniel Heimgartner
  • License: GPL (>= 3)
  • Last published: 2024-11-01