Learn R Programming

⚠️There's a newer version (1.0.2) of this package.Take me there.

tipr: R tools for tipping point sensitivity analyses

Authors: Lucy D’Agostino McGowan License: MIT

Installation

# install.packages(devtools)
devtools::install_github("lucymcgowan/tipr")
library("tipr")

Usage

After fitting your model, you can determine the unmeasured confounder needed to tip your analysis. This unmeasured confounder is determined by two quantities, the association between the exposure and the unmeasured confounder (if the unmeasured confounder is continuous, this is indicated with smd, if binary, with exposed_p and unexposed_p), and the association between the unmeasured confounder and outcome outcome_association. Using this

Copy Link

Version

Install

install.packages('tipr')

Monthly Downloads

274

Version

0.4.0

License

MIT + file LICENSE

Maintainer

Lucy D'Agostino McGowan

Last Published

February 6th, 2024

Functions in tipr (0.4.0)

tip_hr

Tip an observed hazard ratio with a normally distributed confounder.
tip_lm

Tip a linear model result with a continuous confounder.
observed_covariate_e_value

Calculate the Observed Covariate E-value
tip_or

Tip an observed odds ratio with a normally distributed confounder.
observed_bias_tip

Create a data frame to combine with an observed bias data frame demonstrating a hypothetical unmeasured confounder
observed_bias_order

Order observed bias data frame for plotting
observed_bias_tbl

Create a data frame to assist with creating an observed bias plot
tip_rr

Tip an observed relative risk with a normally distributed confounder.
adjust_coef_with_binary

Adjust an observed coefficient from a loglinear model with a binary confounder
tip_hr_with_binary

Tip an observed hazard ratio with a binary confounder.
tip_or_with_binary

Tip an observed odds ratio with a binary confounder.
%>%

Pipe operator
r_value

Robustness value
tip_rr_with_binary

Tip an observed relative risk with a binary confounder.
tip_with_binary

Tip a result with a binary confounder.
tip

Tip a result with a normally distributed confounder.
tip_coef_with_r2

Tip a regression coefficient using the partial R2 for an unmeasured confounder-exposure relationship and unmeasured confounder- outcome relationship
tipr

tipr
adjust_coef_with_r2

Adjust a regression coefficient using the partial R2 for an unmeasured confounder-exposure relationship and unmeasured confounder- outcome relationship
adjust_rr_with_binary

Adjust an observed relative risk with a binary confounder
adjust_hr_with_binary

Adjust an observed hazard ratio with a binary confounder
adjust_rr

Adjust an observed relative risk for a normally distributed confounder
adjust_or_with_binary

Adjust an observed odds ratio with a binary confounder
adjust_hr

Adjust an observed hazard ratio for a normally distributed confounder
adjust_coef

Adjust an observed regression coefficient for a normally distributed confounder
adjust_or

Adjust an observed odds ratio for a normally distributed confounder
e_value

Calculate an E-value