CA.plotCI: Plot 95 percent confidence interval plots for calibration...

View source: R/CA.rel.R

CA.plotCIR Documentation

Plot 95 percent confidence interval plots for calibration statistics

Description

CA.plotCI() takes the argument of CA.rel() and and plots the confidence interval plots for the C, O/U, and NRI calibration statistics.

Usage

CA.plotCI(CA.rel, ylim = list(C = NULL, OU = c(0), NRI = NULL))

Arguments

CA.rel

Object created by the CA.rel function

ylim

A list with the limitation of the y axis for each calibration statistic.

Details

For a more detailed explanation see the github page for a manual. https://github.com/IngerMathilde/CArelationship

Author(s)

Inger van Boeijen <inger.vb.r@gmail.com>

Examples

library(jtools)
data(metamemoryCA)

# Create a CI plot for the C, OU, NRI statistics for high and low metamemory raters of two
# different components.

ChMM <- CA.rel(data = metamemoryCA, confidence = "Confidence",
                        correct = "ChoiceCorrect", test = "CAL",
                        var = c("Rater.EMS.Relative.Face.Recognition",
                                "Rater.EMS.Eyewitness.Ability"),
                        var.levels = c('Low', 'High'),
                        confidenceLevels = list(c(0,20),c(30,40), c(50,60), c(70,80), c(90,100)),
                        jack = TRUE)
CA.plotCI(ChMM)


IngerMathilde/legalPsych documentation built on March 28, 2024, 10:10 p.m.