summary.spe: Tabulate the output of 'spe' function.

View source: R/spe.R

summary.speR Documentation

Tabulate the output of spe function.

Description

The option result allows user to tabulate either sorted estimates or average estimates. For sorted estimates, the table shows user-specified quantile indices, sorted estimates, standard errors, point-wise confidence intervals, and uniform confidence intervals. For average estimates, the table shows average estiamtes, standard errors, and confidence intervals.

Usage

## S3 method for class 'spe'
summary(object, result = c("sorted", "average"), ...)

Arguments

object

The output of spe function.

result

Whether the user wants to see the sorted or the average estimates. Default is sorted, which shows the sorted estimates.

...

additional arguments affecting the summary produced.

Examples

data("mortgage")
fm <- deny ~ black + p_irat + hse_inc + ccred + mcred + pubrec + ltv_med +
ltv_high + denpmi + selfemp + single + hischl
test <- spe(fm = fm, data = mortgage, var = "black", method = "logit",
us = c(2:98)/100, b = 50)
summary(test)

SortedEffects documentation built on March 22, 2022, 9:05 a.m.