elicitBeta: A function that helps you elicits beta prior parameters.

Description Usage Arguments Examples

View source: R/mcmc_funcs.R

Description

This function takes some analyst specifications and returns the "best" parameter tuple that satisfies your criteria. The analyst specifies an ideal average for the value, and an interval (along with a given confidence percentage). If there are tuples that possess, both, coverage probabilities below and above the given percentage, this function will return the tuple that a.) yields the given mean, and b.) that is closest to the desired percentage. If there is no "crossing" then NULL is returned. Optionally, this function will plot the coverage probabilities.

Usage

1
2
elicitBeta(ideal_mean, percent_ci, lower_ci, upper_ci, beta_grid_left,
  beta_grid_right, beta_increment, plot = T)

Arguments

ideal_mean

desired mean for your random variable

percent_ci

what percent confidence do you want (e.g. .95)

lower_ci

what is the lower bound on your interval?

upper_ci

what is the upper bound on your interval?

beta_grid_left

what is the lowest beta value for your grid?

beta_grid_right

what is the highest beta value for your grid?

beta_increment

how spaced apart do you want each beta grid element?

plot

whether a plot should be given as a side effect

Examples

1
smart_pairs(fake_df, 100)

tbrown122387/mmcmc documentation built on Dec. 31, 2019, 12:34 p.m.