tempo_plot_covs_pmf: Plot covariates and PMF

Description Usage Arguments

View source: R/tempo_plotting.R

Description

Plot the covariate time series (with information on predicted coefficient magnitudes and signs) for each covariate, with a plot of the predicted transition time PMF aligned below.

Usage

1
2
3
4
5
6
7
tempo_plot_covs_pmf(
  x,
  draws,
  obs_id,
  confidence_intervals = TRUE,
  title = NULL
)

Arguments

x

output from tempo_derive(). tempo_derive() needs to have been called with the quantity argument equal to or containing "pmf"

draws

the output from tempo_mcmc()

obs_id

The observation id (corresponding to the obs_id column in the y argument to tempo_mcmc(). tempo_derive() needs to have calculated the pmf for this observation (controllable via the obs_idx argument to tempo_derive().

confidence_intervals

Boolean; Should confidence intervals be shown on the pmf plot? Defaults to TRUE.

title

character string; optional title to be placed at the top of the plot. Defaults to NULL in which case a default title is generated: "PMF and covariates for <obs_id>"


vlandau/tempo documentation built on March 18, 2020, 12:04 a.m.