Description Usage Arguments Examples
Performs partial lease squares regression on time series data for a given number of lags.
1 |
y |
Vector of variable to predict using pls |
X |
Matrix of covariates for pls |
lag |
Number of lags to be used for creating pls components |
ncomps |
Number of components for pls regression |
1 2 3 4 5 6 7 8 | ## Not run:
d <- climate_data
dates <- d$date
y <- d$cfs
X <- cbind(d$p,d$tmin,d$tmax)
fit <- time_pls(y,X,dates,lag=30,ncomps=3)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.