Last updated on 2025-08-09 05:49:16 CEST.
Package | ERROR | OK |
---|---|---|
bpAcc | 13 | |
VGAMextra | 1 | 12 |
Current CRAN status: OK: 13
Current CRAN status: ERROR: 1, OK: 12
Version: 0.0-7
Check: examples
Result: ERROR
Running examples in ‘VGAMextra-Ex.R’ failed
The error most likely occurred in:
> base::assign(".ptime", proc.time(), pos = "CheckExEnv")
> ### Name: ARIMAXff
> ### Title: VGLTSMs Family functions: The Order-(p, d, q) Autoregressive
> ### Integrated Moving Average Model (ARIMA(p, d, q)) with covariates
> ### Aliases: ARIMAXff ARMAXff
>
> ### ** Examples
>
> set.seed(3)
> nn <- 90
> theta <- c(0.12, 0.17) # AR coefficients
> phi <- c(-0.15, 0.20) # MA coefficients.
> sdWNN <- exp(1.0) # SDs
> mu <- c(1.25, 0.85) # Mean (not drift) of the process.
> covX <- runif(nn + 1) # A single covariate.
> mux3 <- mu[1] + covX
> ##
> ## Simulate ARMA processes. Here, the drift for 'tsd3' depends on covX.
> ##
> tsdata <- data.frame(TS1 = mu[1] + arima.sim(model = list(ar = theta, ma = phi,
+ order = c(2, 1, 2)), n = nn, sd = sdWNN ),
+ TS2 = mu[2] + arima.sim(model = list(ar = theta, ma = phi,
+ order = c(2, 1, 2)), n = nn, sd = exp(2 + covX)),
+ TS3 = mux3 + arima.sim(model = list(ar = theta, ma = phi,
+ order = c(2, 1, 2)), n = nn, sd = exp(2 + covX) ),
+ x2 = covX)
>
> ### EXAMPLE 1. Fitting a simple ARIMA(2, 1, 2) using vglm().
> # Note that no covariates involved.
> fit.ARIMA1 <- vglm(TS1 ~ 1, ARIMAXff(order = c(2, 1, 2), var.arg = FALSE,
+ # OPTIONAL INITIAL VALUES
+ # idrift = c(1.5)*(1 - sum(theta)),
+ # ivar = exp(4), isd = exp(2),
+ # iARcoeff = c(0.20, -0.3, 0.1),
+ # iMAcoeff = c(0.25, 0.35, 0.1),
+ type.EIM = "exact"),
+ data = tsdata, trace = TRUE, crit = "log")
Error in `[.default`(y, , ii, drop = FALSE) :
incorrect number of dimensions
Calls: vglm -> eval -> eval -> [ -> [.ts -> NextMethod
Execution halted
Flavor: r-devel-linux-x86_64-debian-clang
These binaries (installable software) and packages are in development.
They may not be fully stable and should be used with caution. We make no claims about them.
Health stats visible at Monitor.