invmod | R Documentation |
Calculates the inverse modulus for the regression function at a point problem. More specifically, this calcultes ω^{-1}(b, Λ_{V+}(C),Λ_{V+}(C')) .
invmod(b, C_pair, X, mon_ind, sigma, swap = FALSE)
b |
point where the inverse modulus is evaluated at. |
C_pair |
a pair of smoothness parameters (C, C'). |
X |
n by d design matrix. |
mon_ind |
index of the monotone variables. |
sigma |
standard deviation of the error term (either length 1 or n). |
swap |
indicator for whether we take (C', C) instead of (C, C'). |
the value of inverse modulus given ω = b.
X <- matrix(c(1, -2, -3, 4, 5, -6), nrow = 3, ncol = 2) mon_ind <- c(1, 2) C_pair <- c(0.5, 1) sigma <- c(1, 2, 1) invmod(1, C_pair, X, mon_ind, sigma) invmod(1, c(Inf, 1), X, mon_ind, sigma)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.