R/treemrcabdtreepar.R

Defines functions treemrcabdtreepar

treemrcabdtreepar <-
function(x,l,mu,rho) {
	#x<-sort(x)
	x<-c(NA,x)
	a=mu/l
	r=l-mu
	N<-length(x)
    res <- -((N - 2) * log(r*rho) + 
            N * log(1 - a) + r * sum(x[2:(N-1)])  -
             2 * sum(log(rho*exp(r * x[2:N]) +((1-rho)-a))))
    print("this function conditions on survival. shifts and densdep do not!")
    res
}

Try the TreePar package in your browser

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

TreePar documentation built on May 1, 2019, 9:20 p.m.