Skip to main content
. Author manuscript; available in PMC: 2022 Dec 30.
Published in final edited form as: Stat Med. 2021 Oct 14;40(30):6931–6952. doi: 10.1002/sim.9219

Algorithm 1.

deEM-MM Algorithm: An Expectation maximization algorithm estimating ensemble weights for a Frequentist adaptive algorithm.

1: input: yT, π0, τ
2: output: π
3:
4: ℓℓ ← []
5: πM×1 = π0
6: for j=1:maxIters do
7: ZM×Tπ × f(y)
8: ZZ∕colSum(Z)
9: π ← rowSum(Z)
10: ππ∕ sum(π)
11:  ℓℓ[j] ← computeLL(y,π)
12: if LL[j] - LL[j-1] < τ then
13:   break
14: end if
15:  return π
16: end for