Learn R Programming

ROCit (version 2.1.1)

print.gainstable: Print 'gainstable' Object

Description

S3 print method to print "gainstable" object.

Usage

# S3 method for 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

Run this code
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)

Run the code above in your browser using DataLab