Description Usage Arguments Value Examples
Make a simple visualisation for variable stability.
1 | plotVarStab(yVar, xVar, year, name = NA, dir = getwd())
|
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. |
NULL. Side effect: a plot saved in dir.
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")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.