Error in my.RSS.table[as.character(i), 3:4] <- c(pot.index[opt], break.RSS[opt]) : replacement has length zero
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Idoneità per principianti
- 35/100
Direzione di ricerca
Inizia riproducendo la chiamata segnalata a breakpoints() con il CSV allegato, usando bfastpp() e bfastts() come mostrato. Traccia come recresid(), X1, break.RSS e opt producono NaN e la sostituzione vuota; il lavoro è terminato quando l'esempio non fallisce più con un errore di lunghezza della sostituzione e il comportamento per questo caso limite è coperto da un test di regressione.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
This is a very odd edge case. With a specific h value and specifically when using both trend and harmon components of bfastpp, for specific data, I get the error:
Error in my.RSS.table[as.character(i), 3:4] <- c(pot.index[opt], break.RSS[opt]) :
replacement has length zero
Also a lot of warnings about sqrt() producing NaN values. Looks like that line fails because opt is an integer(0), and that is because break.RSS is a single NaN (which probably comes from the sqrt problem, which in turn comes from fr in recresid being a negative value, which comes from X1 having negative values, and I don't know what X1 stands for).
To reproduce, see attached CSV, and then run the code:
breakpoints(formula(response~trend+harmon), data=
bfastpp(bfastts(CSV$evi, CSV$time), "irregular"), order=3), h=46)
- Lingua principale
- R
- Stelle
- 6
- Fork
- 5
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Guida per i contributori
Nessuna guida per i contributori indicizzata per questo repository
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di bfast2/strucchangeRcpp
-
Tweak at the end Apertaquestion
Difficoltà 4/5 3-5 giorni Idoneità per principianti 20/100
bfast2/strucchangeRcpp#38 · 1 commento ·
-
enhancement
bfast2/strucchangeRcpp#32 · 2 commenti · 1 assegnatario ·
-
bug help wanted
Difficoltà 5/5 Più di una settimana Idoneità per principianti 28/100
bfast2/strucchangeRcpp#22 · 2 commenti ·
-
help wanted question
Difficoltà 5/5 Più di una settimana Idoneità per principianti 25/100
bfast2/strucchangeRcpp#20 · 1 commento ·
-
enhancement
Difficoltà 4/5 3-5 giorni Idoneità per principianti 35/100
bfast2/strucchangeRcpp#16 ·
Tutte le issue di bfast2/strucchangeRcpp
Issue simili
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
easystats/performance#950 ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 70/100
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
briandconnelly/airnow#9 ·
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
OHDSI/CohortConstructor#774 ·