ctsem (version 3.3.11)

ctStanParMatrices: Returns population system matrices from a ctStanFit object, and vector of values for free parameters.

Description

Returns population system matrices from a ctStanFit object, and vector of values for free parameters.

Usage

ctStanParMatrices(fit, parvalues, timeinterval = 1, sf = NA)

Arguments

fit

ctStanFit object.

parvalues

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

timeinterval

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

sf

stanfit object. Generally not necessary, but for repeated calls to this function, can speed things up.

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 {
if(w32chk()){

ctStanParMatrices(ctstantestfit,
  rnorm(length(ctstantestfit$stanfit$rawest),0,.1))
}
# }

Run the code above in your browser using DataLab