Skip to content

Dealing with commented code in standardize models function #333

@IndrajeetPatil

Description

@IndrajeetPatil

Can this be deleted?

# 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

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions