Learn R Programming

MethodCompare (version 1.1.0)

total_bias_plot: Plot total bias

Description

This function draws the "total bias plot", which is used to visually assess the amount of bias. It is obtained by graphing the bias versus the BLUP of the latent trait, x, along with the 95% simultaneous confidence bands.

Usage

total_bias_plot(object, object2 = NULL, rarea = FALSE)

Arguments

object

list returned by measure_compare function.

object2

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

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 total bias
total_bias_plot(measure_model)# }

Run the code above in your browser using DataLab