Open zjyap88 opened 10 months ago
This appears to be a problem in ftsa::forecast.ftsm()
rather than the demography package. Some weights are set to zero (due to you using method="M"
), but then the ftsa
package ignores that when computing fitted values. So the problem needs to be solved by the maintainer of the ftsa
package. I will alert him.
Hello, I encountered an error when I tried to forecast an fdm object with Japan mortality rates.
The code:
which would return Error in fitted[, i] <- fitted(barima) : number of items to replace is not a multiple of replacement length
The same error was also encountered when using mortality rates of Austria, Belgium, Bulgaria, Hungary, Ireland and Spain that were cleaned or transformed to avoid 0 and NA values. However, I did not receive an error when using mortality rates of Australia, Italy, France and Scotland.
Any help to address these inconsistencies would be much appreciated. Thank you in advance.