This function performs prediction from an elastic multinomial logistic fPCR regression model with phase-variability
# S3 method for mlpcr
predict(object, newdata = NULL, y = NULL, ...)
Object of class inheriting from "elastic.pcr.regression"
An optional matrix in which to look for variables with which to predict. If omitted, the fitted values are used.
An optional vector of labels to calculate PC. If omitted, PC is NULL
additional arguments affecting the predictions produced
Returns a list containing
predicted probabilites of the class of newdata
class labels of newdata
probability of classification per class
total probability of classification
J. D. Tucker, J. R. Lewis, and A. Srivastava, <U+201C>Elastic Functional Principal Component Regression,<U+201D> Statistical Analysis and Data Mining, 10.1002/sam.11399, 2018.