univar: Perform Univariate Analysis

View source: R/analysisUnivar.R

univarR Documentation

Perform Univariate Analysis

Description

Perform Univariate Analysis

Usage

univar(
  data = NULL,
  factor = NULL,
  stratifiers = NULL,
  rank = NULL,
  features = NULL,
  pairwise_comparisons = NULL,
  param = F,
  dataset_name = NULL
)

Arguments

data

Either a MicroVis dataset or a data table containing metadata and count values with samples as rows and metadata factors or features as columns

factor

Factor along which to form groups from the samples and perform the statistical analysis

stratifiers

(Optional) One or two factors to stratify the groups by

rank

Rank at which to perform the dataset. Defaults to the active rank

features

List of features to analyze. Defaults to all

pairwise_comparisons

For 3 or more groups, list of vectors of pairwise comparisons to conduct. Defaults to all possible pairwise comparisons

param

Run parametrized or nonparametrized univariate analysis? Default is FALSE

dataset_name

(Not recommended) Name of the dataset to save statistics to. This should not need to be used by users since the function can determine the name of the dataset directly passed to it, but not when it is called within another function.

Value

MicroVis dataset containing the statistics results in its "stats" attribute


microresearcher/MicroVis documentation built on Feb. 8, 2024, 10:59 a.m.