xmu_equate_threshold_values: Equate Threshold Values Across Columns in a Model

View source: R/umxCLPM.R

xmu_equate_threshold_valuesR Documentation

Equate Threshold Values Across Columns in a Model

Description

This function sets the threshold values for multiple columns in a model to be equal to the threshold values of the first specified column. It is useful in contexts where consistent threshold values are needed across different variables for statistical modeling.

Usage

xmu_equate_threshold_values(model, x_cols)

Arguments

model

A model object that contains threshold values in its 'deviations_for_thresh' slot.

x_cols

A character vector specifying the names of the columns whose thresholds will be equated.

Value

The modified model object with equated threshold values across the specified columns.

Examples

## Not run: 
# Assumes `my_model` is a previously defined threshold model
# and has columns "var1", "var2", and "var3" in deviations_for_thresh$values
updated_model = xmu_equate_threshold_values(my_model, x_cols = c("var1", "var2", "var3"))

## End(Not run)


tbates/umx documentation built on Dec. 14, 2024, 11:28 a.m.