calroc: Funció que avalua la calibració i la dicriminació d'un model...

Description Usage Arguments Value

View source: R/calroc.R

Description

Funció que avalua la calibració i la dicriminació d'un model logístic

Usage

1
2
3
4
calroc(model, nOutcome = NULL, calibration = T, roc = T, g = 10,
  cal.plot = T, cal.title = NULL, roc.plot = T, roc.title = NULL,
  cal.name = NULL, roc.name = NULL, add.text.ROC = FALSE,
  p.width = 7, p.height = 4, save = FALSE, path = getwd())

Arguments

model

a logistic model (an object of class "glm", usually, a result of a call to glm).

nOutcome

names of the outcome (should be the same than in the original dataset).

calibration

logical. Should be the Hosmer-Lemeshow test for calibration performed? Default is TRUE.

roc

logical. Should be discrimination assessed? Default is TRUE.

g

numerical. Number of groups for the Hosmer-Lemeshow test. Default value is g = 10. Only needed if calibration is TRUE.

cal.plot

logical. Should be the calibration plot obtained? Default is TRUE.

cal.title

string. Title to be included in the calibration plot. Default is NULL (no title is included).

roc.plot

logical. Should be the ROC curve plotted? Default is TRUE.

roc.title

string. Title to be included in the ROC plot. Default is NULL (no title is included).

cal.name

string. Name for the file to save the calibration plot. Should be specified if calibration and cal.plot are TRUE.

roc.name

string. Name for the file to save the ROC plot. Should be specified if roc and roc.plot are TRUE.

save

logical. Should be the plots saved at disk? Default is FALSE.

path

Local directory to save the plots. Default is getwd().

Value

A list with all results.


IRBLleida/UdBRpackage documentation built on Dec. 24, 2019, 9:10 p.m.