plotsens | R Documentation |
A contour plot of sensitivity analysis results.
plotsens(tau.res, coeff0, partialRsq = FALSE)
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. |
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".
A contour plot corresponding to the output from either survSensitivity
or comprSensitivity.
Rong Huang
data(tau.res) #an example output
plotsens(tau.res, coeff0 = 1.131)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.