Description Usage Arguments References Examples
parallelPlot()
creates a parallel plot for a specified point
on the frontier. Wraps parcoord()
from MASS.
1 | parallelPlot(frontier.object, N, variables, treated.col = 'grey', control.col = 'black')
|
frontier.object |
An object generated by |
N |
The number of observations left in the exported data set.
If the user selects an undefined point, |
variables |
The variables to be included in the parallel plot. |
treated.col |
The color of the lines corresponding to observations assigned to the treatment. Grey by default. |
control.col |
The color of the lines corresponding to observations assigned to the control. Black by default. |
Venables, William N., and Brian D. Ripley. Modern applied statistics with S. Springer, 2002.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | data(lalonde)
match.on <- colnames(lalonde)[!(colnames(lalonde) %in% c('re78', 'treat'))]
mahal.frontier <- makeFrontier(dataset = lalonde,
treatment = 'treat',
match.on = match.on)
parallelPlot(mahal.frontier,
N = 300,
variables = c('age',
're74',
're75',
'black'),
treated.col = 'grey',
control.col = 'blue'
)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.