evaluate: Evaluate prediction

Description Usage Arguments Value Examples

Description

Evaluate goodness of prediction.

Usage

1
evaluate(y_pre, y, cutpoint = 0.5, fam = "Gaussian")

Arguments

y_pre

predicted value

y

actual values (class for binary phenotype and Surv object for right censored phenotype)

cutpoint

cutpoints for binary phenotype, default to be 0.5

fam

family of the phenotype, can be "continous", "binary", or "Cox"

Value

goodness of prediction

Examples

1
2
3
x <- rnorm(100)
y <- rnorm(100)
evaluate(x, y)

glmaag documentation built on May 10, 2019, 9:04 a.m.