MLEp.bsci: Bootstrap confidence interval for the MLE of psi

Description Usage Arguments Value Examples

View source: R/Parameter_estimation_and_hypothesis_testing.R

Description

A bootstrapped confidence interval for the Maximum Likelihood Estimate for psi based on a 100 bootstrap rounds with 80% of data used at a time.

Usage

1
MLEp.bsci(x, level)

Arguments

x

A data vector.

level

Level of confidence interval as number between 0 and 1.

Value

The MLE of psi as well as lower and upper bounds of the bootstrap confidence interval.

Examples

1
2
3
4
## Find a 95% -confidence interval for the MLE of psi given a sample from the
## Poisson-Dirichlet distribution:
x<-rPD(n=10000, psi=100)
MLEp.bsci(x, 0.95)

ville-kinnula/SPEC documentation built on Dec. 23, 2021, 3:11 p.m.