Learn R Programming

bistablehistory (version 1.1.2)

extract_history: Computes history for a fitted model

Description

Computes history for a fitted model, uses only mean values for each history parameter. Uses values for each random cluster, if "random" or "1|random" parametrisation was used.

Usage

extract_history(object)

Value

A matrix of cumulative history values for each state

Arguments

object

An object of class cumhist

Examples

Run this code
# \donttest{
br_fit <- fit_cumhist(br_singleblock, state = "State", duration = "Duration")
extract_history(br_fit)
# }

Run the code above in your browser using DataLab