mid.importance {midr} | R Documentation |
Calculate MID Importance
Description
mid.importance()
calculates the MID importance of a fitted MID model.
Usage
mid.importance(object, data = NULL, weights = NULL, sort = TRUE, measure = 1L)
## S3 method for class 'mid.importance'
print(x, digits = max(3L, getOption("digits") - 2L), ...)
Arguments
object |
a "mid" object. |
data |
a data frame containing the observations to be used to calculate the MID importance. If |
weights |
an optional numeric vector of sample weights. |
sort |
logical. If |
measure |
an integer specifying the measure of the MID importance. Possible alternatives are |
x |
a "mid.importance" object to be printed. |
digits |
an integer specifying the minimum number of significant digits to be printed. |
... |
additional parameters to be passed to |
Details
mid.importance()
returns an object of class "mid.importance".
The MID importance is defined for each component function of a MID model as the mean absolute effect in the given data
.
Value
mid.importance()
returns an object of the class "mid.importance" containing the following components.
importance |
the data frame of calculated importances. |
predictions |
the matrix of the fitted or predicted MID values. |
measure |
the type of the importance measure. |
Examples
data(airquality, package = "datasets")
mid <- interpret(Ozone ~ .^2, airquality, lambda = 1)
imp <- mid.importance(mid)
imp