build dataframe with models for testing

sim_build_models_lm(
  model = c("parallel2", "parallel3", "factors", "interaction"),
  Nprot = 10,
  with_missing = TRUE,
  weight_missing = 1
)

Examples

modi <- sim_build_models_lm(model = "interaction", weight_missing = 1)
#> creating sampleName from fileName column
#> completing cases
#> Joining with `by = join_by(protein_Id)`
stopifnot(dim(modi$modelDF) == c(10,9))
mod2 <- sim_build_models_lm(model = "parallel2", weight_missing = 1)
#> creating sampleName from fileName column
#> completing cases
#> Joining with `by = join_by(protein_Id)`
mod2$modelDF$linear_model[[1]]
#> 
#> Call:
#> lm(formula = formula, data = x)
#> 
#> Coefficients:
#> (Intercept)   TreatmentB  
#>      20.321        4.158  
#> 
mod3 <- sim_build_models_lm(model = "parallel3", weight_missing = 1)
#> creating sampleName from fileName column
#> completing cases
#> Joining with `by = join_by(protein_Id)`
modf <- sim_build_models_lm(model = "factors", weight_missing = 1)
#> creating sampleName from fileName column
#> completing cases
#> Joining with `by = join_by(protein_Id)`