create all possible contrasts

linfct_all_possible_contrasts(lin_int)

Examples

m <- sim_make_model_lm( "interaction")
#> creating sampleName from fileName column
#> completing cases
#> Joining with `by = join_by(protein_Id)`
linfct <- linfct_from_model(m)
xl <- prolfqua::linfct_all_possible_contrasts(linfct$linfct_factors)
xx <- prolfqua::linfct_all_possible_contrasts(linfct$linfct_interactions)
m <- sim_make_model_lm( "factor")
#> creating sampleName from fileName column
#> completing cases
#> Joining with `by = join_by(protein_Id)`
linfct <- linfct_from_model(m)
xl <- prolfqua::linfct_all_possible_contrasts(linfct$linfct_factors)
xx <- prolfqua::linfct_all_possible_contrasts(linfct$linfct_interactions)
m <- sim_make_model_lm( "parallel2")
#> creating sampleName from fileName column
#> completing cases
#> Joining with `by = join_by(protein_Id)`
linfct <- linfct_from_model(m)
xl <- prolfqua::linfct_all_possible_contrasts(linfct$linfct_factors)
stopifnot(all(xl == c(0,-1)))
xx <- prolfqua::linfct_all_possible_contrasts(linfct$linfct_interactions)
stopifnot(all(xx == c(0,-1)))

m <- sim_make_model_lm( "parallel3")
#> creating sampleName from fileName column
#> completing cases
#> Joining with `by = join_by(protein_Id)`
linfct <- linfct_from_model(m)
xl <- prolfqua::linfct_all_possible_contrasts(linfct$linfct_factors)
stopifnot(all(xl == c(0,0,0,-1,0,1,0,-1,-1)))
xx <- prolfqua::linfct_all_possible_contrasts(linfct$linfct_interactions)
stopifnot(all(xl == c(0,0,0,-1,0,1,0,-1,-1)))