minb_fun: Minimum Modulus

View source: R/mod_calc_RD.R

minb_funR Documentation

Minimum Modulus

Description

Calculates the smallest possible modulus value, i.e., ω(0).

Usage

minb_fun(C_pair, X, mon_ind, swap = FALSE)

Arguments

C_pair

a pair of smoothness parameters (C, C').

X

A data matrix.

mon_ind

index number for monotone variables.

swap

indicator for whether we take (C', C) instead of (C, C').

Value

the value of the smallest possible modulus value.

Examples

X <- matrix(c(1, -2, -3, 4, 5, -6), nrow = 3, ncol = 2)
mon_ind <- c(1, 2)
C_pair <- c(0.5, 1)
C_pair2 <- c(Inf, 1)
minb_fun(C_pair, X, mon_ind)
minb_fun(C_pair2, X, mon_ind)

koohyun-kwon/rdadapt documentation built on May 8, 2022, 8:49 p.m.