Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

internalModelPrep

Do internal model preparation for dynr


Description

Principally, this function takes a host of arguments and gives back a list that importantly includes the function addresses.

Usage

internalModelPrep(num_regime, dim_latent_var, xstart, ub, lb,
  options = default.model.options, isContinuousTime, infile, outfile,
  compileLib, verbose)

Arguments

num_regime

An integer number of the regimes.

dim_latent_var

An integer number of the latent variables.

xstart

The starting values for parameter estimation.

ub

The upper bounds of the estimated parameters.

lb

The lower bounds of the estimated parameters.

options

A list of NLopt estimation options. By default, xtol_rel=1e-7, stopval=-9999, ftol_rel=-1, ftol_abs=-1, maxeval=as.integer(-1), and maxtime=-1.

isContinuousTime

A binary flag indicating whether the model is a continuous-time model (FALSE/0 = no; TRUE/1 = yes)

infile

Input file name

outfile

Output file name

compileLib

Whether to compile the libary anew

verbose

Logical flag for verbose output

Value

A list of model statements to be passed to dynr.cook().


dynr

Dynamic Models with Regime-Switching

v0.1.16-2
GPL-3
Authors
Lu Ou [aut], Michael D. Hunter [aut, cre] (<https://orcid.org/0000-0002-3651-6709>), Sy-Miin Chow [aut] (<https://orcid.org/0000-0003-1938-027X>), Linying Ji [aut], Meng Chen [aut], Hui-Ju Hung [aut], Jungmin Lee [aut], Yanling Li [aut], Jonathan Park [aut], Massachusetts Institute of Technology [cph], S. G. Johnson [cph], Benoit Scherrer [cph], Dieter Kraft [cph]
Initial release
2021-03-12

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.