View source: R/smap_thetavec.R
smap_thetavec | R Documentation |
Given a vector of theta values and data, do the S-map calculation for each theta, using the fast 'smap_efficient()'. If values are not already first-differenced then set 'first_difference = TRUE' so the differencing is done within 'smap_efficient()'.
smap_thetavec(N, lags, theta_vec = seq(0, 1, by = 0.1), ...)
N |
A data frame with named columns for the response variable and covariate time series. |
lags |
A list of named integer vectors specifying the lags to use for
each time series in |
theta_vec |
Vector of theta values to use. |
... |
Further options to pass to 'smap_efficient()'. In particular 'first_difference' may need to be TRUE, the default is FALSE. |
Vector of values of 'rho' corresponding to each value of 'theta_vec'.
Andrew Edwards
N <- data.frame(x = simple_ts)
lags <- list(x = 0:1)
res <- smap_thetavec(N, lags, theta_vec = seq(0, 2, by=0.1), first_difference = TRUE)
plot(res)
# And see pbsSmap vignette.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.