fplsr(data, order = 6, type = c("simpls", "nipals"), unit.weights =
TRUE, weight = FALSE, beta = 0.1, interval = FALSE, method =
c("delta", "boota"), alpha = 0.05, B = 100, adjust = FALSE,
backh = 10)
(ncol(data$y)-1) x order
matrix containing the predictor scores.(ncol(data$y)-1) x order
matrix containing the response scores.fts
containing the column means of predictors.fts
containing the column means of responses.fts
containing the 1-step-ahead predicted values of the responses.fts
containing the fitted values.fts
containing the regression residuals.weight = TRUE
, a set of geometrically decaying weights is given. When weight = FALSE
, weights are all equal 1.fts
object, which can be obtained from colnames(data$y)
.fts
object, which can be obtained from data$x
.P. T. Reiss and R. T. Ogden (2007), "Functional principal component regression and functional partial least squares", Journal of the American Statistical Association, 102(479), 984-996.
A. Delaigle and P. Hall (2012), "Methodology and theory for partial least squares applied to functional data", Annals of Statistics, 40(1), 322-352.
ftsm
, forecast.ftsm
, plot.fm
,
summary.fm
, residuals.fm
, plot.fmres
# When weight = FALSE, all observations are assigned equally.
# When weight = TRUE, all observations are assigned geometrically decaying weights.
fplsr(ElNino, order = 6, type = "nipals")
fplsr(ElNino, order = 6)
fplsr(ElNino, weight = TRUE)
fplsr(ElNino, unit.weights = FALSE)
fplsr(ElNino, unit.weights = FALSE, weight = TRUE)
# The prediction intervals are calculated numerically.
fplsr(ElNino, interval = TRUE, method = "delta")
# The prediction intervals are calculated by bootstrap method.
fplsr(ElNino, interval = TRUE, method = "boota")
Run the code above in your browser using DataLab