(1-w_pred) * (log(1-fpr) - exp(log(1-fnr-fpr)+pi.y.1)))))
ll <- ll + sum(lls)
- print(paste0(B0,Bxy,Bzy))
- print(ll)
+# print(paste0(B0,Bxy,Bzy))
+# print(ll)
return(-ll)
}
mlefit <- mle2(minuslogl = nll, control=list(maxit=1e6),method='L-BFGS-B',lower=c(B0=-Inf, Bxy=-Inf, Bzy=-Inf),