Learn R Programming

MethodCompare (version 1.1.0)

precision_plot: Plot the precision of the methods

Description

This function draws the "precision plot", which allows the visual comparison of the precision (i.e. standard deviation) of the new measurement method with the reference standard by creating a scatter plot of the estimated standard deviations, along with their 95% simultaneous confidence bands, against the best linear prediction (BLUP) of the true latent trait, x.

Usage

precision_plot(object, object2 = NULL, log = FALSE, rarea = FALSE)

Arguments

object

list returned by measure_compare function.

object2

(optional) returned by measure_compare function. If provided, will plot a second precision estimate.

log

if TRUE, guarantee the simultaneous confidence bands around the standard deviation of measurement errors to be strictly positive.

rarea

if TRUE, draw the plot with shading areas between the confidence bands.

Examples

Run this code
# \donttest{
### Load the data
data(data1)
### Analysis
measure_model <- measure_compare(data1, nb_simul=100)
### Plot the precision of the two methods
precision_plot(measure_model)# }

Run the code above in your browser using DataLab