SPEplot: Plot output of 'SPE' command.

Description Usage Arguments Examples

Description

Plot output of SPE command.

Usage

1
2
SPEplot(output, xlim = NULL, ylim = NULL, main = NULL, sub = NULL,
  xlab = "Percentile Index", ylab = "Sorted Effects")

Arguments

output

Output of SPE command.

xlim

x-axis limits. Default is range of percentile index.

ylim

y-axis limits. Default is NULL.

main

Main title of the plot. Defualt is NULL.

sub

Sub title of the plot. Default is NULL.

xlab

x-axis label. Default is "Percentile Index".

ylab

y-axis label. Default is "Sorted Effects".

Examples

1
2
3
4
5
6
7
8
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.T = "black", method = "logit",
us = c(1:9)/10)

SPEplot(output = test, main="APE and SPE of Being Black on the prob of Mortgage Denial",
sub="Logit Model", ylab="Change in Probability")

yuqimemeda/SortedEffects documentation built on May 23, 2019, 9:51 a.m.