Skip to contents

Calculate memory usage of AME model components

Usage

ame_memory_usage(fit = NULL, detailed = TRUE)

Arguments

fit

Fitted AME model

detailed

Logical; show detailed breakdown (default TRUE)

Value

Invisibly returns data.frame with memory usage

Author

Cassy Dorff, Shahryar Minhas, Tosin Salau

Examples

set.seed(1)
n <- 12
Y <- matrix(rnorm(n * n), n, n); diag(Y) <- NA
# chains = 1 keeps the example short; the default runs two chains and compares them
fit <- ame(Y, R = 1, nscan = 20, burn = 5, odens = 1, verbose = FALSE, chains = 1)
usage <- ame_memory_usage(fit, detailed = FALSE)