ps.matched.violinplot: Matched Sample Violinplot

Description Usage Arguments Details Examples

View source: R/psDiagnostics.R

Description

Simple visual representation of matched samples

Usage

1

Arguments

data

Data Frame - containing the dataset with previously calculated matches. The data frame must contain a treatment indicator variable called 'treat' and a variable indicating whether the subject was matched called 'is_matched'.

Details

This function creates a violin plot of matched and unmatched samples. This plot shows the kernel density for the two populations - with an inner box and whisker plot of summary statistics. This plot tends to work better for large populations than the matched scatter plot.

Examples

1
2
3
4
## Not run: 
ps.matched.violinplot(myData)

## End(Not run)

OHDSI/Centaur documentation built on May 9, 2017, 3:24 p.m.