set_likelihood_vars: Sets Precomputed Probabiliites as Global Variable

View source: R/prob_model.R

set_likelihood_varsR Documentation

Sets Precomputed Probabiliites as Global Variable

Description

Given a matrix, Q_mat, or log P(y|x), under the Poisson-Lognormal model. Sets this as a global variable for fast computations in the future.

Usage

set_likelihood_vars(Q_mat_loc, X_vals, sigma = NULL)

Arguments

Q_mat_loc

Matrix of precomputed probabiliites, as previously computed by get_Q_mat

X_vals

the x-values used for computing the likelihood functions.

sigma

(default NULL). If NULL, computes SQ_mat according to Q_mat_loc. Else, uses precomputed values of SQ_mat stored in SQ_mat_all with index sigma


dmcable/RCTD documentation built on Feb. 24, 2024, 11:03 p.m.