bwqs_plot: Plot function for Bayesian Weighted Quantile Sum regression...

View source: R/bwqs_main-revised.R

bwqs_plotR Documentation

Plot function for Bayesian Weighted Quantile Sum regression models

Description

This function provide a plot of the parameters with a credible interval. The paramenters of interest could be manually selected and also the level of credible interval.

Usage

bwqs_plot(
  stanfit,
  parms = NULL,
  cri_level = 0.95,
  point_color = "black",
  line_color = "black",
  shape = 21,
  size = 5
)

Arguments

stanfit

the object coming from bwqs() function.

parms

a vector with the name of parameters that we want to plot possible value are 'beta0', 'beta1', 'W', 'delta' (components of covariates) and 'sigma' (if 'gaussian' family is selected).

cri_level

An integer containing the credible level for the interval. This number must be between 0 and 1.

point_color

color of point that indicates the value for the fitted parameters (default black).

line_color

color of line that indicates the credible interval (default black).

shape

symbols to indicate the value of parameters.

size

dimension of shape.

Details

For examples of this function see example of bwqs function


ElenaColicino/bwqs documentation built on Feb. 26, 2023, 12:13 a.m.