R/FULLBayesPrior.R

Defines functions PhiDistr

Documented in PhiDistr

PhiDistr <- function(Phi, Pm, a=1, b=0.1){		# essentially an exponential distribution over lambda, which is integrated out
	d <- abs(Phi - Pm)
	pPhi = a/(2*b)*(1 + d/b)^(-a-1)	
	sum(log(pPhi))
}

Try the nem package in your browser

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

nem documentation built on Oct. 31, 2019, 2:12 a.m.