Creates latent residuals model text for all sets of variables passed via var_groups.

latent_resids(var_groups)

Arguments

var_groups

A list of vectors of variable names. Each element of the list will be used to generate model text for a set of latent residuals based on the variables in that element.

Value

A matrix with columns for each top-level element of var_groups and rows for each element of the list returned by a_latent_resid_set.

Examples

some_vars <- list(x = c('x1', 'x2'), y = c('y1', 'y2')) latent_resids(some_vars)
#> x y #> model_text Character,2 Character,2 #> varname Character,2 Character,2 #> type "latent" "latent"