R/scalar_on_shape.R
predict.scalar.on.shape.Rd
Predict from a Scalar-on-Shape Model
# S3 method for class 'scalar.on.shape' predict(object, newdata, ...)
A fitted scalar.on.shape model.
scalar.on.shape
An object of class 'fdata'.
Ignored.
Predicted response values (numeric vector).
# \donttest{ fd <- fdata(matrix(rnorm(500), 50, 10), argvals = seq(0, 1, length.out = 10)) y <- rnorm(50) fit <- scalar.on.shape(fd, y, nbasis = 5) pred <- predict(fit, fd[1:10, ]) # }