makePi: Makes Markov transition matrices from mean times available...

View source: R/availutils.R

makePiR Documentation

Makes Markov transition matrices from mean times available and unavailable.

Description

Makes Markov transition matrices from mean times available (Ea) and unavailable (Eu). If Ea and Eu are vectors of length m (they must be the same length), returns a 2x2xm array in which element [,,i] is the ith Markov transition matrix; else returns a single 2x2 matrix.

Usage

makePi(Eu, Ea)

Arguments

Eu

is a vector containing the mean time(s) animals are UNavailable in one available-unavailable cycle.

Ea

is a vector containing the mean time(s) animals are available in one available-unavailable cycle (must be same length as Eu).

Examples

Ea=c(10,12);Eu=c(20,22)
makePi(Eu,Ea)
makePi(Eu[1],Ea[1])


david-borchers/hmltm documentation built on Oct. 29, 2023, 9:07 p.m.