show_data_structure: Visualize the model data structure as matrices in LaTeX

View source: R/summary_functions.R

show_data_structureR Documentation

Visualize the model data structure as matrices in LaTeX

Description

Visualize the model data structure as matrices in LaTeX

Usage

show_data_structure(stack)

Arguments

stack

an object of class inla.stack returned from the function make_inlamemi_stacks, which describes the structure of the data for the measurement error and imputation model.

Value

A list containing data frames with the left hand side (response_df) and right hand side (effects_df), along with the latex code needed to visualize the matrices (matrix_string).

Examples


stack <- make_inlamemi_stacks(data = simple_data,
                   formula_moi = y ~ x + z,
                   formula_imp = x ~ z,
                   error_type = "classical")
show_data_structure(stack)


inlamemi documentation built on Oct. 31, 2024, 5:08 p.m.