adjust_mean_variance: Adjust a variable to have equal mean and variance across all...

View source: R/data_cleaning.R

adjust_mean_varianceR Documentation

Adjust a variable to have equal mean and variance across all levels of another variable

Description

Adjust a variable to have equal mean and variance across all levels of another variable

Usage

adjust_mean_variance(y, x, keep.scale = TRUE)

Arguments

y

Dependent variable

x

Independent variable

keep.scale

Default = TRUE. Keep the original mean and sd

Value

Variable


thomasbattram/usefunc documentation built on April 24, 2023, 1:46 p.m.