bisec.eval: Evaluation of test statistic and check if the point has been...

View source: R/invertci.R

bisec.evalR Documentation

Evaluation of test statistic and check if the point has been evaluated

Description

This function is used in the invertci procedure. It checks if the p-value for the point considered has already been evaluated in previous iterations or provided by the user. The function will compute the p-value if it is not provided. Otherwise, it will use the previous data.

Usage

bisec.eval(f, farg, pt, pvals, rngstate, para.match)

Arguments

f

The function that represents a testing procedure.

farg

The list of arguments to be passed to the function of testing procedure.

pt

The point to be evaluated in the bisection method.

pvals

The data frame that consists the points and the corresponding p-values that have been tested in the previous iterations.

rngstate

The current RNG state obtained from .Random.seed.

para.match

The list of parameters to be matched.

Value

Returns the p-value of the point considered and an updated data frame that contains the points and the p-values.

pval

The p-value that corresponds to the test point.

pvals

The updated data frame that contains the p-values that correspond to each set of tuning parameters and each test point.


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