LR.upper {CLAST}R Documentation

Calculates likelihood ratio based upper limit

Description

Calculates approximate upper limit for a probability from x successes out of n binary trials based on the signed root likelihood ratio.

Usage

LR.upper(x, n, a = 0.05, epsilon = 1e-18)

Arguments

x

number of successes (integer between 0 and n inclusive)

n

number of binary trials

a

coverage error of limit

epsilon

Tolerance supplied to uniroot.

Value

A numeric values between 0 and 1

Author(s)

Chris J. Lloyd

Examples

# Find approximate 99% upper limit for probability based on 20 successes from 55 trials.
LR.upper(20,55,a=0.01)
# Find exact (95%) upper limit for probability from all successes.
LR.upper(5,5)

[Package CLAST version 1.0.1 Index]