powered by
Ensures that all covariates specified by vars coefficients are active.
vars
include(vars)
A holistic generalized model constraint, object inheriting from class "hglmc".
"hglmc"
an integer vector specifying the indices for covariates which have to be in the model.
Other Constraint-Constructors: group_equal(), group_inout(), group_sparsity(), k_max(), linear(), lower(), pairwise_sign_coherence(), rho_max(), sign_coherence(), upper()
group_equal()
group_inout()
group_sparsity()
k_max()
linear()
lower()
pairwise_sign_coherence()
rho_max()
sign_coherence()
upper()
dat <- rhglm(100, c(1, 2, 3, 4, 5, 6)) constraints <- include(vars = c("x1", "x3")) hglm(y ~ ., constraints = constraints, data = dat)
Run the code above in your browser using DataLab