plotCalCurve: Older version of calibration curves. Kept for reproducibility...

View source: R/plotCalCurve.R

plotCalCurveR Documentation

Older version of calibration curves. Kept for reproducibility of papers.

Description

Older version of calibration curves. Kept for reproducibility of papers.

Usage

plotCalCurve(
  Data,
  corTrend = FALSE,
  fo = NA,
  CImeth = c("eq", "pred", "dist"),
  prob = seq(0.005, 0.995, by = 0.005),
  dist = c("norm", "t"),
  shape = 2,
  valid = c("kfold", "loo"),
  nFold = 10,
  nRepeat = 10,
  score = TRUE,
  binomCI = c("wilson", "wilsoncc", "clopper-pearson", "agresti-coull", "jeffreys"),
  title = "",
  label = 0,
  gPars = ErrViewLib::setgPars()
)

Arguments

Data

(data.frame) dataframe with predictor(s) and reference

corTrend

(logical) flag to correct trend

fo

(formula) trend correction formula

CImeth

(string) method to estimate CI limits

prob

(vector) a set of coverage probabilities to test

dist

(string) a distribution

shape

(numeric) shape parameter (> 0, maybe non-integer).

valid

(string) a cross-validation method: "kfold" (default) or "loo"

nFold

(integer) number of folds (default: 10)

nRepeat

(integer) number of repeats for k-fold cross-validation

title

(string) a title to display above the plot

label

(integer) index of letter for subplot tag

gPars

(list) graphical parameters

uP

(vector) a set of prediction uncertainties

mycols

(vector) a set of color indexes to gPars colors

plot

(logical) plot the results

Value

Invisibly returns a list of calibration statistics. Mainly used for its plotting side effect.


ppernot/ErrViewLib documentation built on June 1, 2024, 4:33 a.m.