Skip to contents

For "mid" objects, summary() prints information about the fitted MID model.

Usage

# S3 method for class 'mid'
summary(object, digits = max(3L, getOption("digits") - 2L), top.n = 10L, ...)

Arguments

object

a "mid" object to be summarized.

digits

an integer specifying the number of significant digits.

top.n

an integer specifying the maximum number of terms to be printed with the MID importance values.

...

not used.

Value

summary.mid() returns the "mid" object passed to the function without any modification.

Details

The S3 method of summary() for "mid" objects prints basic information about the MID model including the uninterpreted variation ratio, residuals, encoding schemes, and MID importance.

Examples

data(cars, package = "datasets")
summary(interpret(dist ~ speed, cars))
#> 'model' not passed: response variable in 'data' is used
#> 
#> Call:
#> interpret(formula = dist ~ speed, data = cars)
#> 
#> Uninterpreted Variation Ratio:
#> [1] 0.22636
#> 
#> Residuals:
#>       Min        1Q    Median        3Q       Max 
#> -24.50000  -8.06250  -0.33333   8.37500  29.50000 

#> 
#> Encoding:
#>       main.effect
#> speed  linear(17)
#> 
#> Importance:
#>    term importance order
#> 1 speed     18.138     1