ForwardLinear: Autoregressive Forward Algorithm adapted from Stanculescu et...

View source: R/BivariateAutoregressiveHMM.R

ForwardLinearR Documentation

Autoregressive Forward Algorithm adapted from Stanculescu et al

Description

Calculates forward probabilities accounting for autoregressive dependence in the toxin measurements

Usage

ForwardLinear(
  algae_data,
  toxin_data,
  time,
  init,
  tran,
  mu_a,
  k_a,
  tox_em,
  states,
  toxin_states
)

Arguments

algae_data

Algae count data

toxin_data

Toxin data measured in micro grams / OA equivalent

time

Day to calculate forward probability at

init

Initial Markov state probabilities

tran

Transition Markov state probabilities

mu_a

mean negative binomial parameter

k_a

size negative binomial parameter

tox_em

Classification matrix from ordinal regression parameters

Value

Return forward probabilities from day 1 to day time(variable name)


jordanaron22/AndalusiaAlgae documentation built on Feb. 18, 2025, 3:59 p.m.