Displaying 1 result from an estimated 1 matches for "ofna".
Did you mean:
fna
2020 Oct 04
1
Help in R code
...rcorresponding? FPCscores. Know i use the VAR model on those FPCscores forthe forecasting of each 24 hours through the VAR model, but the VAR give me theforecasted value for all 23hours? when i put phat=23, but whenever i putphat=24 i.e want to predict each 24 hours its give the results in the form ofNA. the code is given below
?
fdata<- function(mat){
? nb = 27 # number of basis functions for the data
? fbf = create.fourier.basis(rangeval=c(0,1), nbasis=nb) #basis for data
? args=seq(0,1,length=24)
? fdata1=Data2fd(args,y=t(mat),fbf) # functions generatedfrom discretized y
? return(fdat...