compIntForFEachSlice: Solve the complement of one slice of the truncation set for...

Description Usage Arguments Details Value References

View source: R/trunc_inf.R


This function computes one slice of the truncation set for the F statistic, then returns the complement of the truncation set (w.r.t. to \mathbb{R}).


compIntForFEachSlice(C, coeffs, tol = 1e-08, tol2 = 1e-06)


C, coeffs,

the coefficients related to the F statistic.

tol, tol2

the tolerance of roots.


This function is essentially a wrapper function for selectiveInference:::TF_roots, with minor changes so that the function does not stop when the constraint is infeasible (instead, this function returns an empty "Intervals" object). The reason we compute the complement instead of the original solution set is that when taking intersection of multiple sets, the strategy of "taking union of complements, then taking comlement" is substantially faster than taking intersections directly based on the intervals package.


This function returns an "Intervals" object.


Tibshirani, R., et al. "selectiveInference: Tools for Post-Selection Inference." R package version 1.3 (2016).

shuxiaoc/outference documentation built on Dec. 5, 2017, 3:48 a.m.