print.gainstable: Print "gainstable" Object

View source: R/printGainsTable.R

print.gainstableR Documentation

Print 'gainstable' Object

Description

S3 print method to print "gainstable" object.

Usage

## S3 method for class 'gainstable'
print(x, maxdigit = 3, ... = NULL)

Arguments

x

An object of class "gainstable", created with either gainstable.default or gainstable.rocit.

maxdigit

How many digits after decimal to be printed.

...

NULL. Used for S3 generic/method consistency.

Examples

data("Loan")
class <- Loan$Status
score <- Loan$Score
rocit_emp <- rocit(score = score, class = class, negref = "FP")
# ----------------------------------------------------------------
gtable8 <- gainstable(rocit_emp, ngroup = 8)
print(gtable8)
print(gtable8, maxdigit = 4)

ROCit documentation built on May 29, 2024, 2:15 a.m.