Learn R Programming

MethodCompare (version 1.1.0)

sqrt_mse: Plot the square root of the mean squared errors

Description

This function draws the "sqrt(MSE) plot", which is used to compare the precision of the two measurement methods without recalibrating the new method. It is obtained by graphing the square root mean squared errors of y1 (new method) and y2 (reference method) versus the BLUP of the latent trait, x, along with their 95% simultaneous confidence bands.

Usage

sqrt_mse(object, rarea = FALSE)

Arguments

object

list returned by measure_compare function.

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 square root mean squared errors
sqrt_mse(measure_model)# }

Run the code above in your browser using DataLab