GraphFullCIs.MD {BivRegBLS}R Documentation

Plot all the CBLS potential solutions


Display a plot with all the CBLS potential solutions in a (M,D) plot from ρ_{MD} = -1 to ρ_{MD} = 1 (useful for unreplicated data), choose between all the slopes (and their confidence intervals), all the intercepts (and their confidence intervals), all the confidence regions (ellipses), the two extreme confidence intervals (for the expectation of Y) or the two extreme confidence bands.


GraphFullCIs.MD(FullCIs = NULL, CBLS.estimate = NULL, lambda = NULL,
                xname = "X", yname = "Y", antilog = NULL, graph = "joint.ellipse",
       = 0, = FALSE, = NULL,
                include.H0 = TRUE, = TRUE)



a CIs.MD class object.


a CBLS class object. The CBLS estimates (obtained, for example, with replicated data) will be superimposed on the plot.


a lambdas class object. The value of λ (ratio of the error measurement variances) will be converted to ρ (correlation between the error measurement) and superimposed on the plot with its confidence interval.


a character string for the name of the X device.


a character string for the name of the Y device.


a character string or a numeric value. This argument displays the CBLS results on the initial scales on the (M,D) plot if a logarithmic transformation was used prior to the CBLS function. Options available are: 10 or "e".


a character string for the type of graph: "slope" to plot all the slopes, "intercept" to plot all the intercepts,"joint.ellipse" to plot all the joint confidence intervals (ellipses), "CI" to plot the confidence intervals,"CB" to plot the confidence bands, "all" to plot all the plots on different windows.

a numeric vector (length equal 1 or 2) for the value of Δ: |Y-X|<Δ to assess whether two devices (X and Y) are equivalent or not. Two values of Δ can be entered to take into account the case where the equivalence threshold changes along the M axis.

a logical variable (TRUE or FALSE) whether Δ needs to be interpreted in percentage: Y = X ± Δ %.

a numeric value for the M threshold where the value of Δ changes if two Δ values are used in


a logical variable (TRUE or FALSE) whether the null hypothesis (slope = 0, intercept = 0) should lie on plot (in the case that the null hypothesis is out from the axes limits).

a logical variable (TRUE or FALSE) whether the confidence intervals should lie entirely in the plot.


The ellipses are plotted in an (β,α) coordinate system where the acceptance interval is a diamond. The slopes and the intercepts are plotted on the Y-axis with ρ assigned on the X-axis. The confidence intervals and confidence bands are displayed on a (M,D) plot (Bland-Altman plot).


The plot requested by the argument graph.


Bernard G FRANCQ


Francq BG, Govaerts BB. How to regress and predict in a Bland-Altman plot? Review and contribution based on tolerance intervals and correlated-errors-in-variables models. Statistics in Medicine, 2016; 35:2328-2358.
Francq BG, Govaerts BB. Measurement methods comparison with errors-in-variables regressions. From horizontal to vertical OLS regression, review and new perspectives. Chemometrics and Intelligent Laboratory Systems, 2014; 134:123-139.
Francq BG, Govaerts BB. Hyperbolic confidence bands of errors-in-variables regression lines applied to method comparison studies. Journal de la Societe Francaise de Statistique 2014; 155(1):23-45.

See Also

MD.plot, CBLS


# Estimate all the solutions with the CBLS regression
# Estimate the CBLS regression with replicated data
# Estimate the measurement error variances ratio
# Plot all the results with all the potential solutions
#   and superimpose the CBLS regression estimated with replicated data
# Estimate all the solutions with the CBLS regression
# Plot all the potential solutions for the confidence regions (ellipses)
GraphFullCIs.MD(FullCIs=res.full,xname="HPLC",yname="GC MS",graph="joint.ellipse")
# Plot all the potential solutions for the confidence intervals and add two acceptance intervals
GraphFullCIs.MD(FullCIs=res.full,xname="HPLC",yname="GC MS",graph="CI",

[Package BivRegBLS version 1.1.1 Index]