PlotciBA: Plots the CI estimation of Bayesian method

Description Usage Arguments Details See Also Examples

View source: R/102.Confidence_base_n_Graph.R

Description

Plots the CI estimation of Bayesian method

Usage

1
PlotciBA(n, alp, a, b)

Arguments

n

- Number of trials

alp

- Alpha value (significance level required)

a

- Shape parameter 1 for prior Beta distribution in Bayesian model. Can also be a vector of priors.

b

- Shape parameter 2 for prior Beta distribution in Bayesian model. Can also be a vector of priors.

Details

The plot of Confidence Interval of n given alp using Bayesian method

See Also

Other Basic methods of CI estimation: PlotciAS, PlotciAllg, PlotciAll, PlotciEX, PlotciLR, PlotciLT, PlotciSC, PlotciTW, PlotciWD, ciAS, ciAll, ciBA, ciEX, ciLR, ciLT, ciSC, ciTW, ciWD

Examples

1
2
3
4
n=5; alp=0.05; a=0.5;b=0.5;
PlotciBA(n,alp,a,b)
n=5; alp=0.05; a=c(0.5,2,1,1,2,0.5);b=c(0.5,2,1,1,2,0.5)
PlotciBA(n,alp,a,b)

proportion documentation built on May 1, 2019, 7:54 p.m.