Learn R Programming

dupiR (version 1.2)

getPosteriorParam: Compute posterior probability distribution parameters

Description

Obtain statistical parameters from the posterior probability distribution. Particularly, this function computes credible intervals at a given confidence level (default to 95%).

Usage

getPosteriorParam(object, low = 0.025, up = 0.975, ...)

Arguments

object
An object of class 'Counts'
low
The left tail posterior probability
up
1 - the right tail posterior probability
...
Additional arguments, for compatibility with plotPosterior

Value

Methods

signature(object = "Counts")
an object of class Counts.

See Also

Counts, plotPosterior

Examples

Run this code
K <- newCounts( counts = c(20,30), fractions = c(0.075, 0.10))

#using default parameters (DUP, sampling without replacement and default prior support)
K.dup <- computePosterior(K)

getPosteriorParam(K.dup)

Run the code above in your browser using DataLab