Learn R Programming

SortedEffects (version 1.0.0)

CAplot: Distribution plotting

Description

CAplot plots distributions and joint uniform confidence bands of variables in interest from CA command.

Usage

CAplot(var, output, xlim = NULL, ylim = NULL, main = NULL,
  sub = NULL, xlab = NULL, ylab = NULL)

Arguments

var

The variable in interest after having been sorted. Must be specified as a character.

output

Output of CA 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
t <- c(rep(1, 2), rep(0, 14)) # Specify variables in interest
cl <- matrix(c(1,0,0,1), nrow=2) # Meaning: show variables in interest for both groups
# Drawing Distributions
CAgraph <- CA(fm=fm, data = mortgage, var.T = "black", method = "logit", cl = cl,
              t = t, interest = "dist")
CAplot(var = "p_irat", output = CAgraph)

# }

Run the code above in your browser using DataLab