plotVarStab: Make a simple visualisation for variable stability.

Description Usage Arguments Value Examples

View source: R/plotVarStab.R

Description

Make a simple visualisation for variable stability.

Usage

1
plotVarStab(yVar, xVar, year, name = NA, dir = getwd())

Arguments

yVar

A logical vector of dependent variable.

xVar

A factor or logical vector of independent variable.

year

A factor for the periods of analysis.

name

A character name of dependent variable only for labels.

dir

A character directory where functions saves the image.

Value

NULL. Side effect: a plot saved in dir.

Examples

1
2
3
4
5
6
7
8
data(lendclub)
# save results to getwd()
#plotVarStab(lendclub$loan_status, lendclub$purpose, year=lendclub$issue_d,
#dir=getwd(), name = "purpose_loanstatus")
#or you can replace a year with other variable to check how it behaves in
#such relationship for instance:
#plotVarStab(lendclub$loan_status, lendclub$purpose, year=lendclub$grade,
#dir=getwd(), name = "purpose_grade")

wojciechoblak/varbinq documentation built on May 4, 2019, 9:46 a.m.