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

stan_postcalc

Compute functions of matrices from samples of a stanfit object


Description

Compute functions of matrices from samples of a stanfit object

Usage

stan_postcalc(
  stanfit,
  object,
  calc = "object",
  objectindices = "all",
  summary = TRUE
)

Arguments

stanfit

object of class stanfit.

object

name of stan sub object from stanfit to use for calculations.

calc

string containing R calculation to evaluate, with the string 'object' in place of the actual object name.

objectindices

matrix of indices, with the number of columns matching the number of dimensions of the object. 'all' computes which( array(1,objdims)==1,arr.ind=TRUE), where objdims is what would be returned by dim(object) if the object existed in the R environment.

summary

if FALSE, a iterations * parameters matrix is returned, if TRUE, rstan::monitor is first run on the output.

Value

matrix of values of the specified interactions at each iteration.


ctsem

Continuous Time Structural Equation Modelling

v3.4.3
GPL-3
Authors
Charles Driver [aut, cre, cph], Manuel Voelkle [aut, cph], Han Oud [aut, cph], Trustees of Columbia University [cph]
Initial release
2021-04-20

We don't support your browser anymore

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