Estimate Stock Composition Using Direct Maximum Likelihood (Theta5)
Source:R/estimate.R
estimate_ml_theta5.Rd
Applies an EM algorithm to obtain the direct Maximum Likelihood Estimate (MLE) of stock proportions (Theta_5 in HISEA). This uses the likelihood of each individual mixed fishery sample fish belonging to each stock. The likelihood maximized is:
Arguments
- individual_likelihoods
A numeric matrix (N_mixed_samples x NP) where
individual_likelihoods[i,j]
is $P(Data_i | Stock_j)$, the likelihood of observing the data for mixed sample fishi
given it came from stockj
.- np
Integer, the number of populations (stocks).
- freq
Optional numeric vector of frequencies/weights for each sample (row) in
individual_likelihoods
. Defaults torep(1, nrow(individual_likelihoods))
.- use_accelerated_em
Logical, if TRUE, uses
accel_em_algorithm
, otherwiseem_algorithm
. Default TRUE.- ...
Additional arguments passed to the chosen EM algorithm (e.g.,
max_iter
,tol
,verbose
,save_theta_path
).