Triangle plot showing the fitted values (propensity scores) for three different models.
# S3 method for triangle.psa
plot(x, point.alpha = 0.3, point.size = 1.5,
legend.title = "Treatment", text.size = 4, draw.edges = FALSE,
draw.segments = TRUE, edge.alpha = 0.2, edge.color = "grey",
edge.labels = c("Model 1", "Model 2", "Model 3"), sample = c(1), ...)
the results from trips
.
alpha level for points.
point size.
title for the legend.
text size.
draw edges of the triangle.
draw segments connecting points across two models.
alpha level for edges if drawn.
the color for edges if drawn.
the labels to use for each edge of the triangle.
a vector of length 1 or 3 representing the sample of points to plot.
The position of each element corresponds to the groups as returned
by attr(tpsa,'groups')
. If equal to one, all points will be plotted.
Values less than one will plot a percentage of points. Values greater
than one exactly that number of points will be plotted.
currently unused.
ggplot2 figure
triangle.psa