ciperm0: Permutation scheme for non-parametric confidence intervals

View source: R/univariate.R

ciperm0R Documentation

Permutation scheme for non-parametric confidence intervals

Description

The actual permutation scheme. Note that estimate (if provided), statistic and phi must match.

Usage

ciperm0(y, phi, M = 1000, statistic, bounds, estimate, infinities = FALSE)

Arguments

y

Data (vector of length N)

phi

Covariate function. Must return a vector of length N

M

Number of permutations

statistic

Test statistic

bounds

Bounds forwarded to uniroot in the search for l and u values.

estimate

Parameter estimate. Optional

infinities

If TRUE set l_m = -Inf and u_m = Inf, when uniroot fails to find a root. If FALSE, the procedure fails with an error.

Value

Matrix of dim M x 2

See Also

ciperm


naolsen/ciperm documentation built on July 1, 2022, 3:41 p.m.