plotpi: Plots of piFunction

View source: R/plotpi.R

plotpiR Documentation

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.

Author(s)

Travis M. Loux

Examples

plotpi(k=3, global=0.5)
addpi(k=5/3, lty=2, col='red')
plotpi(k=1/3, global=2/3)

PropScrRand documentation built on April 24, 2022, 1:05 a.m.