plotsens: A contour plot of sensitivity analysis results.

View source: R/plotsens.R

plotsensR Documentation

A contour plot of sensitivity analysis results.

Description

A contour plot of sensitivity analysis results.

Usage

plotsens(tau.res, coeff0, partialRsq = FALSE)

Arguments

tau.res

a data.frame that can be generated from either survSensitivity or comprSensitivity.

coeff0

the value of estimated treatment effect ignoring any confounding.

partialRsq

whether to use partial R^2 instead of coefficients in the contour plot.

Details

This function gives a contour plot in order to visualize results from either survSensitivity or comprSensitivity. The name of sensitivity parameter in the treatment model needs to be "zetaz", the name of sensitivity parameter in the response model needs to be "zetat1", and the name of estimated treatment effect needs to be "tau1".

Value

A contour plot corresponding to the output from either survSensitivity or comprSensitivity.

Author(s)

Rong Huang

Examples

data(tau.res) #an example output
plotsens(tau.res, coeff0 = 1.131)

survSens documentation built on May 31, 2023, 9:30 p.m.