powered by
Evaluate goodness of prediction.
evaluate(y_pre, y, cutpoint = 0.5, fam = "Gaussian")
predicted value
actual values (class for binary phenotype and Surv object for right censored phenotype)
cutpoints for binary phenotype, default to be 0.5
family of the phenotype, can be "continous", "binary", or "Cox"
goodness of prediction
# NOT RUN { x <- rnorm(100) y <- rnorm(100) evaluate(x, y) # }
Run the code above in your browser using DataLab