-
-
Notifications
You must be signed in to change notification settings - Fork 17
Open
Labels
Upkeep 🧹maintenancemaintenance
Description
Can this be deleted?
datawizard/R/standardize.models.R
Lines 377 to 390 in 793b95e
| # if (is.numeric(y_data[[x$treat]]) || is.numeric(m_data[[x$treat]])) { | |
| # if (!(is.numeric(y_data[[x$treat]]) && is.numeric(m_data[[x$treat]]))) { | |
| # stop("'treat' variable is not of same type across both y and m models.", | |
| # "\nCannot consistently standardize.", call. = FALSE) | |
| # } | |
| # | |
| # temp_vals <- .rescale_fixed_values(c(control.value, treat.value), x$treat, | |
| # y_data = y_data, m_data = m_data, | |
| # y_data_std = y_data_std, m_data_std = m_data_std) | |
| # | |
| # control.value <- temp_vals[1] | |
| # treat.value <- temp_vals[2] | |
| # if (verbose) message("control and treatment values have been rescaled to their standardized scales.") | |
| # } |
Metadata
Metadata
Assignees
Labels
Upkeep 🧹maintenancemaintenance