Learn R Programming

markovchain (version 1.1.1)

lump: Aggregate a Markov chain over a partition

Description

Coarsens a Markov chain to a reduced state space. By default the function requires exact lumpability. With force = TRUE, it performs an approximate aggregation using stationary weights when available and arithmetic averages for macro-states with zero stationary mass.

Usage

lump(object, partition, force = FALSE)

# S4 method for markovchain lump(object, partition, force = FALSE)

Value

A markovchain object on the macro-state space.

Arguments

object

A markovchain object.

partition

A named list of character vectors defining macro-states.

force

If FALSE, stop unless the chain is exactly lumpable. If TRUE, return a weighted approximate lumping.