Visualize the model data structure as matrices in LaTeX
Visualize the model data structure as matrices in LaTeX
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.
Returns
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)