ci.inout: Determine whether a point is inside the confidence interval...

View source: R/invertci.R

ci.inoutR Documentation

Determine whether a point is inside the confidence interval or not

Description

This function determines whether the bisection method is going to be updated by choosing the left segment or the right segment of the interval as the updated interval for the next iteration.

Usage

ci.inout(pval, alpha, type)

Arguments

pval

The p-value of the test statistic.

alpha

The significance level(s). This can be a vector.

type

The type of the confidence interval. Set type as 1 for the upper bound of the confidence interval and set type as -1 for the lower bound of the confidence interval.

Value

Returns whether the part of the interval to be selected in the next iteration of the bisection method.

part

A string indicating whether the left or right segment of the interval is chosen.


conroylau/lpinfer documentation built on Oct. 23, 2022, 9:21 a.m.