R/cumulativemarg.R

"cumulativemarg" <-
function(cumulative,x,a){
	if(missing(a)){resp<-cumulative(x)}
	else{
		d<-length(a)
		if(d==1){resp<-cumulative(x,a[1])}
		else{
		if(d==2){resp<-cumulative(x,a[1],a[2])}
		else{
		if(d==3){resp<-cumulative(x,a[1],a[2],a[3])}	
			}
		}
		}
		}

Try the fgac package in your browser

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

fgac documentation built on May 2, 2019, 6:07 a.m.