used in project p2901

model_analyse(
  pepIntensity,
  model_strategy,
  subject_Id = "protein_Id",
  modelName = "Model"
)

Examples


x <- sim_lfq_data_peptide_config()
#> creating sampleName from fileName column
#> Warning: no nr_children column specified in the data, adding column nr_children and setting to 1.
#> completing cases
formula_randomPeptide <-
  strategy_lmer("abundance  ~ group_ + (1 | peptide_Id)")
mr <- model_analyse( x$data,
 formula_randomPeptide,
 subject_Id = x$config$table$hierarchy_keys_depth())
#> Warning: There were 4 warnings in `dplyr::mutate()`.
#> The first warning was:
#>  In argument: `linear_model = purrr::map(data, model_strategy$model_fun, pb =
#>   pb)`.
#>  In group 2: `protein_Id = "7cbcrd~5725"`.
#> Caused by warning in `value[[3L]]()`:
#> ! WARN :Error: grouping factors must have > 1 sampled level
#>  Run `dplyr::last_dplyr_warnings()` to see the 3 remaining warnings.
#> Joining with `by = join_by(protein_Id)`
stopifnot(nrow(get_complete_model_fit(mr$modelProtein)) == 6)