Build output package from fit

output_package(naomi_fit, naomi_data, na.rm = FALSE)

Arguments

naomi_fit

Fitted naomi model

naomi_data

Naomi model frame with data

na.rm

Whether to remove NA values when calculating summary statistics, default FALSE

Value

List containing output indicators and metadata.

Details

The argument na.rm = TRUE allows the output package to be produced when there are errors due to missing values when generating outputs. This is only for debugging purposes to review results when there are errors. NA values in simulated model results typically mean poor model fit or non-convergence that needs to be addressed.