Learn R Programming

bvpa (version 1.0.0)

pctl.fun: Survival functions of pivots of estimators of locations.

Description

Survival functions of pivots of estimators of locations \(\mu_1\) and \(\mu_2\). These are required to calculate the critical value of confidence intervals for \(\mu_1\) and \(\mu_2\).

Usage

pctl.fun(z, n, a0, a1, a2, pct, select = 1)

Value

return a function.

Arguments

z

quantiles.

n

number of observations.

a0

value of \(\alpha_0\).

a1

value of \(\alpha_1\).

a2

value of \(\alpha_2\).

pct

probabilities.

select

Allows to select the function for different location parameters. a single model term to be selected for printing. e.g. if you just want the function for \(\mu_1\) set \(select=1\) (default).

Author

Biplab Paul <paul.biplab497@gmail.com> and Arabin Kumar Dey <arabin@iitg.ac.in>

Examples

Run this code
uniroot(pctl.fun, interval=c(0,2), n = 500, a0 = 2.0, a1 = 0.4, a2 = 0.5,
 pct = 0.025, tol = 0.0001)[[1]]

Run the code above in your browser using DataLab