Compute functions of matrices from samples of a stanfit object
Compute functions of matrices from samples of a stanfit object
stan_postcalc( stanfit, object, calc = "object", objectindices = "all", summary = TRUE )
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 |
summary |
if FALSE, a iterations * parameters matrix is returned, if TRUE, rstan::monitor is first run on the output. |
matrix of values of the specified interactions at each iteration.
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.