R/parallelPlot.R

Defines functions parallelPlot

Documented in parallelPlot

parallelPlot <-
function(frontier.object, N, variables, treated.col = 'grey', control.col = 'black'){

    dataset <- generateDataset(frontier.object, N)
    
    col <- rep(NA, nrow(dataset))
    col[dataset[[frontier.object$treatment]] == 1] <- treated.col
    col[dataset[[frontier.object$treatment]] == 0] <- control.col

    dataset <- dataset[,variables]
    parcoord(dataset, col = col)
}

Try the MatchingFrontier package in your browser

Any scripts or data that you put into this service are public.

MatchingFrontier documentation built on May 2, 2019, 4:16 a.m.