gg_loess: gg_loess: Loess plot for propensity scores

Description Usage Arguments Value

View source: R/gg_loess.R

Description

Loess plot with density distributions for propensity scores and outcomes on top and right, respectively.

Usage

1
2
3
4
gg_loess(x, response, treatment, responseTitle = "",
  treatmentTitle = "Treatment", percentPoints.treat = 0.2,
  percentPoints.control = 0.1, points.treat.alpha = 0.2,
  points.control.alpha = 0.1, ...)

Arguments

x

vector of propensity scores.

response

the response variable.

treatment

the treatment varaible as a logical type.

responseTitle

the label to use for the y-axis (i.e. the name of the response variable)

treatmentTitle

the label to use for the treatment legend.

percentPoints.treat

the percentage of treatment points to randomly plot.

percentPoints.control

the percentage of control points to randomly plot.

points.treat.alpha

the transparency level for treatment points.

points.control.alpha

the transparency level for control points.

...

other parameters passed to geom_smooth and stat_smooth.

Value

a ggplot2 figure


kmcconeghy/Scotty documentation built on Aug. 26, 2020, 11:45 p.m.