plot_sim_vs_fitted: Plot the fitted model parameters vs. simulated model...

View source: R/plot_sim_vs_fitted.R

plot_sim_vs_fittedR Documentation

Plot the fitted model parameters vs. simulated model parameters

Description

Plot the fitted model parameters vs. simulated model parameters

Usage

plot_sim_vs_fitted(
  out,
  X,
  beta,
  W,
  alpha,
  base_size = 12,
  file = NULL,
  width = 16,
  height = 9
)

Arguments

out

The output from mcmc_mra() or mcmc_mra_integrated()

X

The simulated regression covariates

beta

The simulated regression coefficients

W

The simulated spatial basis functions

alpha

The simulated spatial basis coefficients

base_size

The base size for the plot

file

If file = NULL, the ggplot object is returned. If file is not NULL, an image is saved to the file path specified by file

width

If a file path is specified, width determines the width of the saved image (in inches)

height

If a file path is specified, height determines the height of the saved image (in inches)

Value

Either a ggplot object of the fitted vs. simulated parameter values (if file = NULL) or a saved image file with no return (file is not NULL)


jtipton25/BayesMRA documentation built on Feb. 28, 2024, 1:27 p.m.