#Basic usage with two levels within FactorX2, 20 observations in each group, with residual SD 15
two_independent_tab <- make_2way_data(c(100, 20), c(200, 300), 20, 15)
#Four levels with 5 observations and residual SD 5
two_independent_tab <- make_2way_data(c(100, 20, 1500, 20), c(150, 5, 1450, 25), 5, 5)
Run the code above in your browser using DataLab