Displaying 1 result from an estimated 1 matches for "rezagosx".
Did you mean:
rezagos
2009 Nov 20
0
problem with predict from nnet package
...h 2010.(the
network forecasts one month at a time).
Since I have to do iterative forecasting, im using predict several times
including, including the new forecast each time, but for some reason predict
doesn’t forecast after the first itereation.
Here is my code:
pronostico4=function(x,rezagosx,muestra, reps, tam, maxi,vo,net){
library(timeSeries)
library(nnet)
library(dummies)
x=as.timeSeries(x)
X=NULL
for (k in 1:length(rezagosx)) {
X=cbind(X, lag(diff(log(x)),rezagosx[k]))
}
pred=predict(net, X,type="raw&...