batch_kruskal: batch_kruskal

View source: R/batch_kruskal.R

batch_kruskalR Documentation

batch_kruskal

Description

This function is used to efficiently perform the Kruskal-Wallis test on multiple continuous feature variables across different groups, providing statistical information such as p-values, adjusted p-values, and star ratings for significance.

Usage

batch_kruskal(data, group, feature = NULL, feature_manipulation = FALSE)

Arguments

data

A data frame containing the dataset.

group

A character specifying the name of the grouping variable.

feature

A character vector specifying the names of the feature variables. If not specified, all continuous features will be estimated.

feature_manipulation

A logical value indicating whether feature manipulation should be performed. Default value is FALSE.

Examples


# Loading TCGA-STAD micro environment signature score data
data("sig_stad", package = "IOBR")
# Finding micro environmental scores associated with TCGA molecular subtype
batch_kruskal(data = sig_stad, group = "Subtype", feature = colnames(sig_stad)[69:ncol(sig_stad)])

IOBR/IOBR documentation built on April 4, 2024, 1:07 a.m.