Learn R Programming

ctsem (version 2.5.0)

ctStanParMatrices: Returns model equation matrices from a ctStanModel or ctStanFit, and vector of values for free parameters.

Description

Returns model equation matrices from a ctStanModel or ctStanFit, and vector of values for free parameters.

Usage

ctStanParMatrices(model, parvalues, timeinterval = 1)

Arguments

model

either a ctStanFit or ctStanModel object.

parvalues

vector of parameter values to assign to any free parameters in the model

timeinterval

time interval to use for discrete time (dt) matrix calculations.

Value

A list containing various matrices related to a continuous time dynamic model. Matrices with "dt" in front refers to discrete time, "asym" refers to asymptotic (time interval = infinity), and "cor" refers to correlations.

Examples

Run this code
# NOT RUN {
ctStanParMatrices(ctstantestfit,rep(0,16))
# }

Run the code above in your browser using DataLab