Learn R Programming

TriMatch (version 1.0.0)

Propensity Score Matching of Non-Binary Treatments

Description

Propensity score matching for non-binary treatments.

Copy Link

Version

Install

install.packages('TriMatch')

Monthly Downloads

219

Version

1.0.0

License

GPL (>= 2)

Issues

Pull Requests

Stars

Forks

Maintainer

Jason Bryer

Last Published

April 3rd, 2025

Functions in TriMatch (1.0.0)

segment2

Internal method for plotting. Position along the right side segment
summary.balance.plots

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

Provides a summary of unmatched subjects.
summary.triangle.psa

Prints the summary results of the logistic regression models.
trimatch

Creates matched triplets.
trimatch.apply2

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

Internal method for plotting. Position along the left side segment
unmatched

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

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

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

Estimates propensity scores for three groups
tutoring

Results from a study examining the effects of tutoring services on course grades.
parallel.plot

Parallel coordinate plot for the three groups and dependent variable.
print.balance.plots

Print the results of [balance.plot()] for a data frame of covariates.
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`.
star

Returns significance level.
OneToN

This method will use a M1-to-M2-to-1 matching.
balance.plot

Balance plot for the given covariate.
distances.plot

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

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

Returns a ggplot2 box plot of the differences.
covariateBalance

Calculate covariate effect size differences before and after stratification.
TriMatch-package

Propensity Score Analysis for Non-Binary Treatments
maximumTreat

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

Triangle plot drawing matched triplets.
merge.triangle.matches

Merges outcomes with the matched set.
loess3.plot

Loess plot for matched triplets.
merge.triangle.psa

Merges covariate(s) with the results of [trips()].
distance.euclid

Euclidean distance calculation.
data.frame.to.list

Convert a list of vectors to a data frame.
nmes

Results from the 1987 National Medical Expenditure Study
perpPt

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

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

Triangle plot.
multibalance.plot

Multiple covariate balance assessment plot.