keep_balance: keeps balance of groups in designs with between-subject...

View source: R/utility_functions.R

keep_balanceR Documentation

keeps balance of groups in designs with between-subject variables

Description

keeps balance of groups in designs with between-subject variables

Usage

keep_balance(final_data, simvar, fixed_effects, n_want)

Arguments

final_data

simulated data

simvar

variable that is changed in simulation process

fixed_effects

fixed effects in model used to simulate data

n_want

levels of simvar the data should have


DejanDraschkow/mixedpower documentation built on Feb. 16, 2024, 7:58 a.m.