This helper function refits the specified SEM model after dropping
the given cases and extracts the parameter estimate for the specified path
(e.g., var_one ~ var_two).
getValue(drops_index, df, model, var_one, var_two)A numeric scalar giving the parameter estimate for the specified path after removing the selected observations.
Integer vector of observation indices to drop from the data.
A data frame containing the dataset.
A lavaan SEM model specification.
Character string giving the dependent (left-hand side) variable.
Character string giving the predictor (right-hand side) variable.