Learn R Programming

PropScrRand (version 1.1.1)

plotpi: Plots of piFunction

Description

Can be used to investigate the strength of balance forced by various values of the tuning parameter k.

Usage

plotpi(k, global = 0.5)
addpi(k, global = 0.5, ...)

Arguments

k

Balancing parameter.

global

Global target for proportion of units treated.

...

Parameters in addpi passed to lines function.

Details

The function plotpi creates a plot of treatment probability against fitted propensity score for values of k and global. The function addpi adds a curve for a new combination of k and global to an existing plot.

Examples

Run this code
# NOT RUN {
plotpi(k=3, global=0.5)
addpi(k=5/3, lty=2, col='red')
plotpi(k=1/3, global=2/3)
# }

Run the code above in your browser using DataLab