powered by
Extracts a history parameter as a matrix with samplesN rows and randomN (found in object$data$randomN) columns.
samplesN
object$data$randomN
extract_history_parameter( object, param_name, samplesN = NULL, link_function = NULL )
Matrix with samplesN rows and randomN (found in object$data$randomN) columns
A cumhist object
String, a name of the parameter
Number of samples, if NULL is computed from rstan (but it is cheaper to do this once).
A link function to use (exp or inv.logit) or NULL for identity.
NULL
# \donttest{ br_fit <- fit_cumhist(br_singleblock, state="State", duration="Duration") extract_history_parameter(br_fit, "tau", link_function = exp) # }
Run the code above in your browser using DataLab