This function visualizes the fitted fash prior in the fash object, using simulation via simulate_fash_prior(). Two types of visualizations are supported:

  • "sample_path": plot individual sample paths from the prior, with different PSD mixture components shown in different colors and line types.

  • "psd": plot a histogram of the PSD values corresponding to the M prior samples drawn from the mixture.

visualize_fash_prior(
  fash_obj,
  plot_type = c("sample_path", "psd"),
  M = 100,
  constraints = c("none", "initial", "orthogonal"),
  x_range = NULL,
  x_new = NULL
)

Arguments

fash_obj

A fitted fash object, passed to simulate_fash_prior().

plot_type

Character string specifying the type of plot: "sample_path" or "psd".

M

Integer; number of prior samples to draw via simulate_fash_prior(). For plot_type = "sample_path", this is the number of sample paths drawn (default M = 100). For plot_type = "psd", this is the number of PSD values shown in the histogram (i.e., M PSD values simulated from the prior mixture).

constraints

Character; passed to simulate_fash_prior(). One of "none", "initial", or "orthogonal".

x_range

Optional numeric vector of length 2 defining the simulation domain. If NULL, may be inferred inside simulate_fash_prior().

x_new

Optional numeric vector of evaluation points for the prior functions. If NULL, a default grid is used inside simulate_fash_prior().

Value

A ggplot object.