Objective function when updating alpha
obj_for_alpha(mu, sigma2, alpha, rho, log_bb_dense, ploidy)
A vector. The ith element is individual i's variational posterior mean at the SNP.
A vector. The ith element is individual i's variational posterior variance at the SNP.
The SNP's allele frequency.
A vector. The ith element is individuals i's inbreeding coefficient.
A matrix of log-densities of the beta binomial. The rows index the individuals and the columns index the allele dosage.
The ploidy of the species.
A double. The objective when updating alpha
in
mupdog
.