Learn R Programming

TriMatch (version 1.0.1)

Propensity Score Matching of Non-Binary Treatments

Description

Propensity score matching for non-binary treatments.

Copy Link

Version

Install

install.packages('TriMatch')

Monthly Downloads

256

Version

1.0.1

License

GPL (>= 2)

Issues

Pull Requests

Stars

Forks

Maintainer

Jason Bryer

Last Published

December 8th, 2025

Functions in TriMatch (1.0.1)

plot.triangle.matches

Triangle plot drawing matched triplets.
plot.balance.plots

Prints a grid of balance plots.
plot.triangle.psa

Triangle plot.
nmes

Results from the 1987 National Medical Expenditure Study
print.balance.plots

Print the results of [balance.plot()] for a data frame of covariates.
segment2

Internal method for plotting. Position along the right side segment
loess3.plot

Loess plot for matched triplets.
merge.triangle.matches

Merges outcomes with the matched set.
merge.triangle.psa

Merges covariate(s) with the results of [trips()].
summary.triangle.matches

Provides a summary of the matched triplets including analysis of outcome measure if provided.
summary.triangle.psa

Prints the summary results of the logistic regression models.
trimatch.apply2

Recursive function to find possible matched triplets using the apply functions.
trips

Estimates propensity scores for three groups
star

Returns significance level.
summary.balance.plots

Prints a summary table of the test statistics of each balance plot.
maximumTreat

This method will return at least one treatment from groups one and two within the caliper.
print.triangle.plot

Print method for [plot.triangle.psa()]. The primary purpose is to suppress the "Removed n rows containing missing values" warning printed by `ggplot2`.
tutoring

Results from a study examining the effects of tutoring services on course grades.
print.trimatch.summary

Prints the results of [summary.triangle.matches()].
trimatch

Creates matched triplets.
summary.unmatched

Provides a summary of unmatched subjects.
unmatched

Returns rows from [trips()] that were not matched by [trimatch()].
ezANOVA

Compute ANOVA
balance.plot

Balance plot for the given covariate.
TriMatch-package

Propensity Score Analysis for Non-Binary Treatments
OneToN

This method will use a M1-to-M2-to-1 matching.
as.data.frame.list

Convert a list of vectors to a data frame.
covariateBalance

Calculate covariate effect size differences before and after stratification.
distance.euclid

Euclidean distance calculation.
boxdiff.plot

Returns a ggplot2 box plot of the differences.
distances.plot

Barplot for the sum of distances.
data.frame.to.list

Convert a list of vectors to a data frame.
parallel.plot

Parallel coordinate plot for the three groups and dependent variable.
perpPt

Internal method for plotting. Finds a point d distance from x, y
multibalance.plot

Multiple covariate balance assessment plot.
segment1

Internal method for plotting. Position along the left side segment