print.measureit: Print "measureit" Object

View source: R/printMeasureit.R

print.measureitR Documentation

Print 'measureit' Object

Description

S3 method to print object of "measureit" class in organized way.

Usage

## S3 method for class 'measureit'
print(x, n = NULL, ... = NULL)

Arguments

x

An object of class "measureit", created with the function measureit.

n

How many rows of output is desired in the output. If NULL, then prints all the rows. If specified, then first n rows are printed. If specified n is bigger than the number of possible rows, then n is adjusted. If non integer or negative, default (10 or number of possible rows, whichever is smaller) is set. If NULL, all rows printed.

...

NULL. Used for S3 generic/method consistency.

See Also

measureit

Examples

data("Diabetes")
logistic.model <- glm(as.factor(dtest)~chol+age+bmi,
                      data = Diabetes,family = "binomial")
class <- logistic.model$y
score <- logistic.model$fitted.values
# -------------------------------------------------------------
measure <- measureit(score = score, class = class,
                     measure = c("ACC", "SENS", "FSCR"))
print(measure, n = 5)
print(measure, n = 10)





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