Learn R Programming

MethodCompare (version 1.1.0)

mse: Plot the mean squared errors

Description

This function draws the "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 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

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

Run the code above in your browser using DataLab