skew_index_plot: Simple posterior density plot for Stan results.

View source: R/Skew_Index_Plot.R

skew_index_plotR Documentation

Simple posterior density plot for Stan results.

Description

95 percent CI of posterior preditions in shaded orange, posterior median in white, and point estimate from sample in dark orange.

Usage

skew_index_plot(Index = "M", Age = FALSE, SkewResults = StanResults,
  Save = FALSE)

Arguments

Index

Should plot be of "M" or of "Mraw"?

Age

M or Mraw should be adjusted for diminishing returns to age, TRUE or FALSE?

SkewResults

The Stan object from which the results will be plotted.

Save

If desired, the plot can be saved as a pdf. Just set Save="FigueNameDesired", and R will export the plot as "FigureNameDesired.pdf".

Examples

set.seed(1)
RS = rpois(100, 5) 
Age = rpois(100, 45)
M_index_stan(RS, Age)
skew_index_plot(Index="M", Age=FALSE, Save=FALSE)

ctross/SkewCalc documentation built on March 18, 2024, 7:49 a.m.