importance.test.boosting | R Documentation |
This function takes a fitted linear.logic
model and independent test
data as input for testing if the included terms are influential with respect
to the outcome.
This hypothesis test is based on a likelihood-ratio test.
importance.test.boosting(model, X, y, Z, Z.interactions = TRUE)
model |
A fitted |
X |
Matrix or data frame of binary input data. This object should correspond to the binary matrix for fitting the model. |
y |
Response vector. 0-1 coding for binary outcomes. |
Z |
Optional quantitative covariables supplied as a matrix or data frame. Only used (and required) if the model was fitted using them. |
Z.interactions |
A Boolean value determining whether interactions with
quantitative covaraible |
In detail, the null hypotheses
H_0: β_j = δ_j = 0
using the linear model
g(E[Y]) = β_0 + ∑_{i=1}^B β_i \cdot 1[C_i] + δ_0 \cdot E + ∑_{i=1}^B δ_i \cdot 1[C_i] \cdot E
are tested for each j \in \lbrace 1,…,B \rbrace
if Z.interactions
is set to TRUE
.
Otherwise, the null hypotheses
H_0: β_j = 0
using the linear model
g(E[Y]) = β_0 + ∑_{i=1}^B β_i \cdot 1[C_i] + δ_0 \cdot E
are tested.
A data frame consisting of three columns,
|
The tested term, |
|
The associated variable importance, and |
|
The corresponding p-value for testing if the term is influential. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.