Skip to contents

This function creates plots and summary tables to compare two groups within a dataset.

Usage

Plot2GroupStats(
  Data,
  Variables,
  VariableCategories = NULL,
  impClust,
  normalClust,
  GroupVar
)

Arguments

Data

A data frame containing the data to be analyzed.

Variables

A character vector of variable names to be included in the analysis.

VariableCategories

A data frame containing variable categories (optional).

impClust

A character string representing the important cluster.

normalClust

A character string representing the normal cluster.

GroupVar

The grouping variable used for the comparison.

Value

A list containing a plot, a summary table, and a p-value table.