Description Usage Arguments Value Examples
Sample plots for prediction evaluation (scatter plot for Gaussian, ROC curve for logistic, and Kaplan Meier curve for Cox)
1 | evaluate_plot(y_pre, y_test, fam = "Gaussian", mod, y_train, cutp)
|
y_pre |
predicted value |
y_test |
actual value |
fam |
type of predicted outcome, can be "Gaussian" (default), "Logisitc", and "Cox" |
mod |
fitted glmagarph model, must be available for Cox if cutpoint not provided |
y_train |
the training outcome to obtain |
cutp |
cutpoint for Cox model |
plots
1 2 3 | x <- rnorm(100)
y <- x + rnorm(100)
evaluate_plot(x, y)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.