Commit e8e60fc
Fix truth vector generation in forecastbaselines vignette
The code was trying to access out-of-bounds indices (trend[51:62] when
trend only has 50 elements), which created NA values that became Missing
in Julia, causing a type error.
Fixed by generating future trend and seasonal values for the forecast
horizon instead of trying to index beyond the data length.
Error was: "expected Vector{Float64}, got Union{Missing, Float64}"
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>1 parent e5fa78e commit e8e60fc
1 file changed
+4
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
218 | 218 | | |
219 | 219 | | |
220 | 220 | | |
221 | | - | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
222 | 225 | | |
223 | 226 | | |
224 | 227 | | |
| |||
0 commit comments