Creates latent residual terms for each variable in vars, using varname to name them.

a_latent_resid_set(vars, varname)

Arguments

vars

Vector of variable names (column names in the target data.frame).

varname

Used to name the latent residuals.

Value

A list with the model text in model_text, latent residual names in varname, and type set to 'latent' (not used yet).