Description Usage Arguments Value
View source: R/multivariate_models.R
Use a parallel for loop along with "chunks" of input data to calculate the vector of negative log-likelihoods. For each chunk, a conventional for loop is used for each negative log-likelihood calculation and a parallel for loop is used to iterate across chunks. The output is identical to calc_neg_log_lik_vect_multivariate, but chunking the data can lead to better performance on some syanalysis_names.
1 2 3 4 5 6 | calc_neg_log_lik_vect_multivariate_chunk_outer(
th_y,
calc_data,
tf_cat_vect = NA,
num_chunks = round(length(calc_data)/10)
)
|
th_y |
The parameter vector |
calc_data |
Data needed for a speedy negative log-likelihood calculation |
tf_cat_vect |
A vector to transform th_y from an unconstrained to a constrained representation (if necessary) |
num_chunks |
The number of chunks to use (default: round(length(calc_data)/10)) |
The vector of negative log-likelihoods
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.