Learn R Programming

glmaag (version 0.0.6)

evaluate: Evaluate prediction

Description

Evaluate goodness of prediction.

Usage

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

Run this code
# NOT RUN {
x <- rnorm(100)
y <- rnorm(100)
evaluate(x, y)
# }

Run the code above in your browser using DataLab