powered by
Sample plots for prediction evaluation (scatter plot for Gaussian, ROC curve for logistic, and Kaplan Meier curve for Cox)
evaluate_plot(y_pre, y_test, fam = "Gaussian", mod, y_train, cutp)
predicted value
actual value
type of predicted outcome, can be "Gaussian" (default), "Logisitc", and "Cox"
fitted glmagarph model, must be available for Cox if cutpoint not provided
the training outcome to obtain
cutpoint for Cox model
plots
# NOT RUN { x <- rnorm(100) y <- x + rnorm(100) evaluate_plot(x, y) # }
Run the code above in your browser using DataLab