tidyverts / tidyverts/fabletools
Error in `wrap_arima()`: When calling refit
Nobody has claimed this yet.
- Dominant language
- R
- Stars
- 98
- Forks
- 37
- PR merge metrics
- No merged PRs in 30d
Description
Hello,
I am experiencing an issue when calling refit on a test dataframe object. I've called this multiple times in the past and never experienced this issue and am unsure how to proceed to correct the error. This is the error that is printed when I call refit on my test tsibble,
Error in `mutate()`:
ℹ In argument: `arima = (function (object, ...) ...`.
Caused by error in `wrap_arima()`:
! wrong length for 'fixed'
Here's my code,
library(tidyverse)
library(dplyr)
library(ggplot2)
library(extrafont)
library(ggh4x)
library(ggpubr)
library(tsibble)
library(fable)
library(fabletools)
library(feasts)
market_df <- read_csv("./market_data.csv")
market_ts <-
market_df |>
as_tsibble(index = date,
key = c(market, state, census_region, region, sb_region))
train <- filter(market_ts, date <= "2023-05-25")
test <- filter(market_ts, date > "2023-05-25")
linear_fits <- train |>
model(
tslm = TSLM(appointment_value ~ national_tv + local_tv + youtube + radio + meta + search + liposuction + season() + trend()),
tslm_lipo = TSLM(appointment_value ~ national_tv + local_tv + youtube + radio + meta + search + liposuction + season_week + season_year),
arima = ARIMA(appointment_value ~ national_tv + local_tv + youtube + radio + meta + search + liposuction, stepwise = FALSE)
)
linear_fits |>
refit(test)
accuracy()
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the supplied R example using the train and test tsibbles, the ARIMA model, and refit(test), then inspect the reported wrap_arima() failure and the surrounding refit path. The report names no repository file or test; done means identifying why the fixed parameter length is wrong and confirming that the supplied refit call completes without this error.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- r
- Domain
- data
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100