Skip to contents

weighted likelihood for optimising parameters assuming underlying gamma distribution each point adds to likelihood given weight belonging to component 2: w2

Usage

wt_loglik(par, dat, tau2)

Arguments

par

parameters to be maximised

dat

data to be used for maximisation

tau2

numeric; mixture weights for (primary, secondary) pairs

Value

value of the negative sum of the weighted log likelihood