I had implemented this tvar=pmean=pmin=pmax=varmax=varmin<-matrix(data=NA,nrow=n-deltat-tml,ncol=1) Now the problem I become pmean=pmin=pmax which is not possible! Any suggestion? Thanks in advance -- View this message in context: http://www.nabble.com/initialize-a-matrix-tp18279886p18280210.html Sent from the R help mailing list archive at Nabble.com.