plotsens {survSens} | R 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 |
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)
[Package survSens version 1.1.0 Index]