plot_tpm_entries: Plot entries of transition probability matrices

Description Usage Arguments Value

View source: R/covariate_analysis.R

Description

This function plots the transition probability matrix entries with their confidence intervals for different covariate values.

Usage

1
2
3
4
5
6
plot_tpm_entries(
  num_states,
  covar_vec,
  cov_ci,
  covariate_name = "Temp - mean(Temp)"
)

Arguments

num_states

The number of states in the HMM.

covar_vec

The vector of covariate values to plot the entries over.

covariate_name

Label for the x-axis.

tpm_entries_list

A list of 3 matrices, one for the estimate and the upper, and lower confidence interval, with the rows of the matrices containing the entries of the transition probability matrices at each covariate value.

Value

A list with a plot for each of the transition probability entries varying with the covariate.


simonecollier/lizardHMM documentation built on Dec. 23, 2021, 2:24 a.m.