stat_test_subgroups {YAPSA} | R Documentation |
Apply Kruskal-Wallis tests to detect differences in the signature exposures
between different subgroups. Uses split_exposures_by_subgroups
.
Algorithm analogous to stat_test_SMC
.
stat_test_subgroups( in_exposures_df, in_subgroups_df, in_subgroups.field = "subgroup", in_PID.field = "PID" )
in_exposures_df |
Numerical data frame of the exposures (i.e. contributions of the different signatures to the number of point mutations per PID) |
in_subgroups_df |
Data frame indicating which PID belongs to which subgroup |
in_subgroups.field |
Name indicating which column in
|
in_PID.field |
Name indicating which column in |
A list with entries kruskal_df
, kruskal_posthoc_list
,
kruskal_df
: A data frame containing results
(statistic and p values) of the Kruskal Wallis tests (tests for enrichment
or depletion in the different strata for every signature independently).
kruskal_posthoc_list
: A list of results of pairwise posthoc
tests carried out for those signatures where the Kruskal Wallis test
yielded a significant p-value (carried out by
kwAllPairsNemenyiTest
).
NULL