Checks that true_theta stores the DeCovarT mixture parameters:
p: mixing proportions of length \(J\), or a matrix \(J\times N\) of sample-wise proportions (each column on the simplex);mu: mean signature \(\boldsymbol{\mu}\in\mathcal{M}_{G\times J}\) (also accepts \(J\times G\));sigmaand/orTheta: array \(G\times G\times J\) of covariances and/or precision matrices.
Usage
check_true_theta(
true_theta,
require_p = TRUE,
J = NULL,
second_moment = c("either", "sigma", "Theta")
)Arguments
- true_theta
Named list with the fields above.
- require_p
Logical; if
TRUE(default),pmust be present and valid. IfFALSE, a missingpis allowed (callers may default it).- J
Optional expected number of cell types. When
NULL, inferred frommu/ the third dimension ofsigmaorTheta.- second_moment
Which second-moment field to require:
"sigma","Theta", or"either"(default: at least one ofsigma/Theta).