prep_for_neg_log_lik_multivariate: Prepare for the negative log-likelihood calculations

Description Usage Arguments Value

View source: R/multivariate_models.R

Description

Prepare for the negative log-likelihood calculations by creating indexing objects to speed up execution.

Usage

1
2
3
4
5
6
7
prep_for_neg_log_lik_multivariate(
  x,
  Y,
  mod_spec,
  remove_log_ord = FALSE,
  no_missing_var = TRUE
)

Arguments

x

The independent variable

Y

The matrix of responses

mod_spec

The model specification

no_missing_var

(Default: TRUE) Whether or not to require all variables to have no missing values.

remove_log_ord_cases

Whether or not to remove log_ord edge cases from the return list, calc_data. remove_log_ord_cases should be TRUE if calc_data is being used to calculate a likelihood function and should, typically, otherwise be FALSE (e.g., if log_ord is being used for posterior inference).

Value

Data needed for a speedy negative log-likelihood calculation (calc_data)


MichaelHoltonPrice/yada documentation built on Sept. 19, 2021, 11:27 p.m.