View source: R/printMeasureit.R
print.measureit | R Documentation |
'measureit'
ObjectS3 method to print object of "measureit"
class
in organized way.
## S3 method for class 'measureit'
print(x, n = NULL, ... = NULL)
x |
An object of class |
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 |
... |
|
measureit
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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.