R/sd.filter.R

sd.filter<-function(data, cutoff=0.5)
{
sd<-apply(data,1,sd)
plot(sort(sd), ylab="Standard deviation")
abline(h=0.5,col="red")
data<-data[sd>cutoff,]
return(data)
}

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.