| tulpa_loglik | R Documentation |
Wrap a pointwise log-likelihood for tulpa_criteria() without materializing
the whole [n_draws x n_obs] matrix. A plain matrix is wrapped directly; a
block generator (a function of an integer column vector returning the
[n_draws x length(cols)] submatrix) lets the criteria accumulators stream
over observation blocks, so an EVA-scale [200 x 1.16M] log-likelihood is
consumed a few thousand columns at a time.
tulpa_loglik(x, n_obs = NULL, n_draws = NULL)
x |
Either a numeric |
n_obs, n_draws |
Required when |
A tulpa_loglik object: a list with get(cols), n_obs,
n_draws, and materialized.
tulpa_criteria()
ll <- tulpa_loglik(matrix(rnorm(20 * 5, -1), nrow = 20)) # 20 draws x 5 obs
c(ll$n_draws, ll$n_obs)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.