plot_theta: Plot priors and posteriors

Description Usage Arguments Value

Description

Plot priors and posteriors distribution for all estimated parameters.

Usage

1
2
3
4
5
6
7
8
9
plot_theta(
  ssm,
  path = NULL,
  id = NULL,
  x_limits = NULL,
  keep = NULL,
  drop = NULL,
  ...
)

Arguments

ssm

a ssm object, returned by new_ssm.

path

character, where to find X_*.csv. If NULL (default), use the path of the last block (e.g. /pmcmc).

id

numeric, indicate which X_*.csv to choose. If NULL (default), use the id of the last block (default to 0 in SSM).

x_limits

names list of min max values for plotting. Useful when posterior is much more concentrated than prior.

keep

names of the theta to plot. By default all theta are plotted.

drop

names of the theta to drop before plotting. By default all theta are plotted.

...

arguments passed to ggplot2::facet_wrap

Value

a ggplot object


StateSpaceModels/ssminr documentation built on Feb. 7, 2020, 8:20 p.m.