estimate_memory_initialization_MegaLMM: Estimate the memory requirment for a fully initialized...

View source: R/helper_functions.R

estimate_memory_initialization_MegaLMMR Documentation

Estimate the memory requirment for a fully initialized MegaLMM model

Description

the initialize_MegaLMM() function can take a while to run, especially when there are multiple random effects, large numbers of observations, and multiple groups of traits (with different missing data patterns, stored in the Missing_data_map). Approximately, the initialization time and memory requirements will be linear in the number of groups of traits, and scale with h2_divisions^(# random effects).

Usage

estimate_memory_initialization_MegaLMM(MegaLMM_state)

Arguments

MegaLMM_state

The model after calling initialize_variables_MegaLMM

Details

This function will initialize the MegaLMM model for a single h2 vector and extrapolate to the full grid of h2 vectors, enabeling you to estimate if you have enough memory allocated to call initialize_MegaLMM()

Value

The estimated memory size in bytes

See Also

estimate_memory_posterior

Examples

estimate_memory_initialization_MegaLMM(MegaLMM_state)

deruncie/MegaLMM documentation built on June 10, 2025, 7:26 p.m.