R/getAmpDel.R

Defines functions getAmpDel

Documented in getAmpDel

getAmpDel <-
function(oo,sam.dat){
	y<-oo$y0
	tmp<-1:dim(sam.dat)[1]
	amp.tag<-which(!tmp%in%oo$list&sam.dat[,4]>y)
	del.tag<-which(!tmp%in%oo$list&sam.dat[,4]<=y)
	amp<-sum(sam.dat[amp.tag,5])/sum(sam.dat[,5])
	del<-sum(sam.dat[del.tag,5])/sum(sam.dat[,5])
	return(c(amp,del))
}

Try the CHAT package in your browser

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

CHAT documentation built on May 29, 2017, 10:32 p.m.