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 (2022) <doi:10.1080/00031305.2022.2063944>.
Details
The DESCRIPTION file:
Package: | tailTransform |
Type: | Package |
Title: | Symmetric Transformation of Tails for Plotting Differences |
Version: | 2.0.0 |
Authors@R: | person(given = c("Paul", "R."), family = "Rosenbaum", role = c("aut", "cre"), email = "rosenbaum@wharton.upenn.edu") |
Author: | Paul R. Rosenbaum [aut, cre] |
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 (2022) <doi:10.1080/00031305.2022.2063944>. |
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 boxplotTTBlockDesign Parallel Boxplots After Tail Transformation For a Block Design boxplotTTlist Parallel Boxplots After Tail Transformation For a List tailTransform-package Symmetric Transformation of Tails for Plotting Differences ttrans Symmetric Tail Transformation of Differences for Graphical Display
The package contains five items: (i) a function ttrans() that symmetrically shortens the tails of pair differences for graphical display, (ii) three plotting functions, boxplotTT(), boxplotTTlist() and boxplotBlockDesign(), that aid 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.1080/00031305.2022.2063944>
Author(s)
Paul R. Rosenbaum [aut, cre]
Maintainer: Paul R. Rosenbaum <rosenbaum@wharton.upenn.edu>
References
Rosenbaum, P. R. (2023) <doi:10.1111/biom.13558> Sensitivity analyses informed by tests for bias in observational studies. Biometrics. 9(1), 475-487.
Rosenbaum, P. R. (2022) <doi:10.1080/00031305.2022.2063944> A new transformation of treated-control matched-pair differences for graphical display. American Statistician, 76, 346-352.
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)