fill_transitions: Combine prior and data for transition matrix

Description Usage Arguments Value

View source: R/fill_funcs.R

Description

fill_transition returns the expected value of the transition matrix combining observed transitions for one time step and a prior

Usage

1
fill_transitions(TF, N, P = NULL, priorweight = -1, returnType = "T")

Arguments

TF

A list of two matrices, T and F, as ouput by projection.matrix.

N

A vector of observed transitions.

P

A matrix of the priors for each column. Defaults to uniform.

priorweight

total weight for each column of prior as a percentage of sample size or 1 if negative

returnType

A character vector describing the desired return value. Defaults to "T" the transition matrix.

Value

The return value depends on parameter returnType.


atyre2/raretrans documentation built on Sept. 28, 2020, 8:55 p.m.