Hello is there a function in R to generate Hankel Matrix? thanks
hankel<-function(seq){ outer(1:((length(seq)+1)/2),1:((length(seq)+1)/2), function(x,y) seq[x+y-1]) } will take a sequence of odd length and ouput the corresponding square Hankel matrix. Fred J. wrote: > Hello > is there a function in R to generate Hankel Matrix? -- Erich Neuwirth, Computer Supported Didactics Working Group Visit our SunSITE at http://sunsite.univie.ac.at Phone: +43-1-4277-38624 Fax: +43-1-4277-9386