R/spmOrth.R

spmOrth<-function(a){
x<-a[,1]
for (i in 2:ncol(a)){
D = a[,i]
qr<-qr(x)
D = qr.resid(qr,D)
x<-cbind(x,D)
}
return(x)
}

Try the FIACH package in your browser

Any scripts or data that you put into this service are public.

FIACH documentation built on May 1, 2019, 8:02 p.m.