R/LikConstantn.R

Defines functions LikConstantn

Documented in LikConstantn

LikConstantn <- function(lambda,mu,sampling,x,root=1){
		l<-lambda
		m<-mu
		x<-sort(x,decreasing=TRUE)
		t<-x
		rho<-sampling
		lik<- 0+root*(-log(length(t)))
		for (i in 2:length(t)){
		lik<- lik+log(l*p1(t[i],l,m,rho))-log(qhelp(t[1],l,m,rho))}
	 -lik
}

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.