| group_inout {holiglm} | R Documentation |
In-Out Constraint
Description
Forces coefficients of the covariates in the specified group to be either all zero or all nonzero.
Usage
group_inout(vars)
Arguments
vars |
a vector specifying the indices or names of the covariates to which the constraint shall be applied. |
Value
A holistic generalized model constraint, object inheriting from class "hglmc".
See Also
Other Constraint-Constructors:
group_equal(),
group_sparsity(),
include(),
k_max(),
linear(),
lower(),
pairwise_sign_coherence(),
rho_max(),
sign_coherence(),
upper()
Examples
dat <- rhglm(100, c(1, 2, 3, 4, 5, 6))
constraints <- group_inout(c("x1", "x2", "x3"))
hglm(y ~ ., constraints = constraints, data = dat)
[Package holiglm version 1.0.0 Index]