R/censor.exp.x.R

censor.exp.x <-
function(delta,x,min.branch){
	Fn <- sum(delta)
	x[x==0] <- min.branch
	Tn <- sum(x)
	est <- Fn/Tn
	LL <- Fn*(log(Fn)-log(Tn)-1)
	a <- data.frame(t(c(est,NA)),LL)
	return(a)
	}

Try the iteRates package in your browser

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

iteRates documentation built on May 2, 2019, 9:12 a.m.