Description Usage Arguments Value Examples
Makes predictions of new observations from a fitted spline model.
1 | predict_smooth(model_smooth, X)
|
model_smooth |
A spline model resulting from |
X |
Matrix containing the new observations. |
Vector of length nrow(X)
of predictions.
1 2 3 4 5 6 | data <- generate_test_data(100, 2)
X <- data$X_train
y <- data$y_train
result <- PCG_smooth(m = c(7,7), q = c(3,3), lambda = 0.1, X = X, y = y, print_error = FALSE)
X_test <- data$X_test
predict_smooth(model_smooth = result, X = X_test)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.