tailTransform-package {tailTransform} | R Documentation |
Symmetric Transformation of Tails for Plotting Differences
Description
When plotting treated-minus-control differences, after-minus-before changes, or difference-in-differences, the ttrans() function symmetrically transforms the positive and negative tails to aid plotting. The package includes an observational study with three control groups and an unaffected outcome; see Rosenbaum (2020) <doi:10.1111/biom.13558>.
Details
The DESCRIPTION file:
Package: | tailTransform |
Type: | Package |
Title: | Symmetric Transformation of Tails for Plotting Differences |
Version: | 1.0.4 |
Author: | Paul R. Rosenbaum |
Maintainer: | Paul R. Rosenbaum <rosenbaum@wharton.upenn.edu> |
Description: | When plotting treated-minus-control differences, after-minus-before changes, or difference-in-differences, the ttrans() function symmetrically transforms the positive and negative tails to aid plotting. The package includes an observational study with three control groups and an unaffected outcome; see Rosenbaum (2020) <doi:10.1111/biom.13558>. |
License: | GPL-2 |
Encoding: | UTF-8 |
LazyData: | true |
Imports: | stats, graphics |
Suggests: | sensitivitymw, sensitivitymult |
Depends: | R (>= 3.5.0) |
Index of help topics:
aHDL Alcohol and HDL Cholesterol: An Observational Study with 3 Control Groups boxplotTT Parallel Boxplots After Tail Transformation tailTransform-package Symmetric Transformation of Tails for Plotting Differences ttrans Symmetric Tail Transformation of Differences for Graphical Display
The package contains three items: (i) a function ttrans() that symmetrically shortens the tails of pair differences for graphical display, (ii) a function boxplotTT() that aids in interpreting and displaying the transformed data, and (iii) an observational study aHDL with three control groups and an unaffected outcome that are intended to reveal unmeasured confounding if it is present.<doi:10.1111/biom.13558>
Author(s)
Paul R. Rosenbaum
Maintainer: Paul R. Rosenbaum <rosenbaum@wharton.upenn.edu>
References
Rosenbaum, P. R. (2022a). Sensitivity analyses informed by tests for bias in observational studies. Biometrics. <doi:10.1111/biom.13558>
Rosenbaum, P. R. (2022b). A new transformation of treated-control matched-pair differences for graphical display. Manuscript.
Examples
data(aHDL)
attach(aHDL)
d<-hdl[grpL=="D"]-hdl[grpL=="N"] # pair differences
tcks<-c(-100,-60,-40,-20,0,20,40,60,200)
boxplotTT(d,p=-1,qu=.95,tcks=tcks)
detach(aHDL)
rm(tcks,aHDL)