R/compute.RQ.R

compute.RQ<-function(RAN)
{
r.star<-apply(RAN,1,mean)
q.star<-rep(NA,nrow(RAN))
for (i in 1:nrow(RAN))
q.star[i]<-sum((RAN[i,]-r.star[i])^2)
return(cbind(r.star,q.star))
}

Try the MAMA package in your browser

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

MAMA documentation built on Jan. 15, 2017, 3:05 p.m.