contrasts_linfct: compute group averages

View source: R/tidyMS_R6_Modelling.R

contrasts_linfctR Documentation

compute group averages

Description

used in p2621, p2109

Usage

contrasts_linfct(
  models,
  linfct,
  subject_Id = "protein_Id",
  contrastfun = prolfqua::my_contest
)

Examples

modelSummary_A <- sim_build_models_lm()
m <- get_complete_model_fit(modelSummary_A$modelDF)

factor_contrasts <- linfct_factors_contrasts( m$linear_model[[1]])
factor_levelContrasts <- contrasts_linfct( m,
        factor_contrasts,
        subject_Id = "protein_Id",
        contrastfun = prolfqua::my_contrast_V2)



wolski/prolfqua documentation built on Oct. 31, 2024, 9:22 a.m.