abess_tram | R Documentation |
Optimal subset selection for transformation models
abess_tram(
formula,
data,
modFUN,
supp,
mandatory = NULL,
k_max = supp,
thresh = NULL,
init = TRUE,
m_max = 10,
m0 = NULL,
...
)
formula |
object of class |
data |
data frame containing the variables in the model. |
modFUN |
function for fitting a transformation model, e.g., |
supp |
support size of the coefficient vector |
mandatory |
formula of mandatory covariates, which will always be included
and estimated in the model. Note that this also changes the intialization
of the active set. The active set is then computed with regards to the
model residuals of |
k_max |
maximum support size to consider during the splicing algorithm.
Defaults to |
thresh |
threshold when to stop splicing. Defaults to
0.01 * |
init |
initialize active set. Defaults to |
m_max |
maximum number of iterating the splicing algorithm. |
m0 |
Transformation model for initialization |
... |
additional arguments supplied to |
List containing the fitted model via modFUN
, active set
A
and inactive set I
.
set.seed(24101968)
library(tramvs)
N <- 1e2
P <- 5
nz <- 3
beta <- rep(c(1, 0), c(nz, P - nz))
X <- matrix(rnorm(N * P), nrow = N, ncol = P)
Y <- 1 + X %*% beta + rnorm(N)
dat <- data.frame(y = Y, x = X)
abess_tram(y ~ ., dat, modFUN = Lm, supp = 3)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.