Last chance! 50% off unlimited learning
Sale ends in
The function plot.Fano.BinBin
plots the distribution of
# S3 method for Fano.BinBin
plot(x,Type="Density",Xlab.R2_HL,main.R2_HL,
ylab="density",Par=par(mfrow=c(1,1),oma=c(0,0,0,0),mar=c(5.1,4.1,4.1,2.1)),
Cex.Legend=1,Cex.Position="top", lwd=3,linety=c(5,6,7),color=c(8,9,3),...)
An object of class Fano.BinBin
. See Fano.BinBin
.
The type of plot that is produced. When Type="Freq"
, a histogram of Type="Density"
, the density of Type="Scatter"
, a scatter plot of Type="Scatter"
.
The label of the X-axis when density plots or histograms are produced.
Title of the density plot or histogram.
The label of the Y-axis when density plots or histograms are produced. Default ylab="density"
.
Graphical parameters for the plot. Default par(mfrow=c(1,1),oma=c(0,0,0,0),mar=c(5.1,4.1,4.1,2.1))
.
The size of the legend. Default Cex.Legend=1
.
The position of the legend. Default Cex.Position="top"
.
The line width for the density plot . Default lwd=3
.
The line types corresponding to each level of fano_delta
. Default linety=c(5,6,7)
.
The color corresponding to each level of fano_delta
. Default color=c(8,9,3)
.
Other arguments to be passed.
An object of class Fano.BinBin
with components,
The sampled values for
The sampled values for
The minimum value for
The maximum value for
The sampled value for
The specified vector of upper bounds for the prediction errors.
Indexes the sampling of
The sampled values for
The sampled values for
The sampled values for
The sampled values for
Values for
The vector
Alonso, A., Van der Elst, W., & Molenberghs, G. (2014). Validation of surrogate endpoints: the binary-binary setting from a causal inference perspective.
# NOT RUN {
# Conduct the analysis assuming no montonicity
# for the true endpoint, using a range of
# upper bounds for prediction errors
FANO<-Fano.BinBin(pi1_ = 0.5951 , pi_1 = 0.7745,
fano_delta=c(0.05, 0.1, 0.2), M=1000)
plot(FANO, Type="Scatter",color=c(3,4,5),Cex.Position="bottom")
# }
Run the code above in your browser using DataLab