Learn R Programming

SortedEffects (version 1.0.0)

SPEplot: Plot output of SPE command.

Description

Plot output of SPE command.

Usage

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

Run this code
# NOT RUN {
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")

# }

Run the code above in your browser using DataLab