This function estimates the posterior distribution for a subgroup of patients identified with the function hmr (Hierarchical Meta-Regression).
# S3 method for hmr
effect(
object,
B.lower = 0,
B.upper = 3,
k = 1,
level = c(0.5, 0.75, 0.95),
x.lim = c(-9, 5),
y.lim = c(-1, 5),
x.lab = "Baseline risk",
y.lab = "Effectiveness",
title.plot = paste("Posterior Effectiveness for a subgroup (50%, 75% and 95%)"),
kde2d.n = 25,
marginals = TRUE,
bin.hist = 30,
color.line = "black",
color.hist = "white",
color.data.points = "black",
alpha.data.points = 0.1,
S = 5000,
display.probability = FALSE,
line.no.effect = 0,
font.size.title = 20,
...
)
The object generated by the function hmr.
Lower limit of bias correction. The default is 0 meaning no bias correction.
Upper limit of bias correction. The default is 3 meaning three times bias correction.
Covariable number indicating the subgroup.
Vector with the probability levels of the contour plot. The default values are: 0.5, 0.75, and 0.95.
Numeric vector of length 2 specifying the x-axis limits.
Numeric vector of length 2 specifying the y-axis limits.
Text with the label of the x-axis.
Text with the label of the y-axis.
Text for setting a title in the bias plot.
The number of grid points in each direction for the non-parametric density estimation. The default is 25.
If TRUE the marginal histograms of the posteriors are added to the plot.
The number of bins in for the histograms. The default value is 30.
The color of the contour lines. The default is "black.
The color of the histogram bars. The default is "white".
The color of the data points. The default is "black".
Transparency of the data points.
The number of sample values from the joint posterior distribution used to approximate the contours. The default is S=5000.
Logical, if TRUE the figure display probabilities.
Horizontal line used as reference for no effect.
Font size of the title.
...