Predict new responses using an asm regression model.
Predict new responses using an asm regression model.
Outputs predictions on new test data based on a fitted asm regression model. Also returns a confidence interval around the conditional mean (if interval = "confidence") or predicted response (if interval = "prediction").
## S3 method for class 'asm'predict(object, newdata =NULL, interval ="none", level =0.95,...)
Arguments
object: asm object
newdata: new data frame
interval: type of interval calculation, either "none", "confidence" or "prediction". Default is "none".
level: confidence level
...: additional arguments to ensure compatibility with the generic function predict()
Returns
matrix of predicted values * if interval = "none", the matrix has one column of predicted values * if interval = "confidence" or "prediction", the matrix has three columns: predicted value, lower bound, and upper bound