data(lalonde)
match.on <- colnames(lalonde)[!(colnames(lalonde) %in% c('re78', 'treat'))]
mahal.frontier <- makeFrontier(dataset = lalonde,
treatment = 'treat',
outcome = 're78',
match.on = match.on)
parallelPlot(mahal.frontier,
N = 300,
variables = c('age',
're74',
're75',
'black'),
treated.col = 'grey',
control.col = 'blue'
)
Run the code above in your browser using DataLab