makeDF: Construct data frame with pairwise statistics

View source: R/makeDF.R

makeDFR Documentation

Construct data frame with pairwise statistics

Description

Construct a data frame containing statistics and p-values for pairwise comparison of data sets.

Usage

makeDF(
  df,
  column,
  permutationPvalues,
  nPermutations,
  subsampleSize,
  kmin,
  kfrac
)

Arguments

df

The input data frame. Must contain at least a column named 'dataset' and an additional column with values

column

The name of the column(s) of df to be used as the basis for the comparison

permutationPvalues

Whether or not to calculate p-values of statistics via permutation

nPermutations

The number of permutations (only used if permutationPvalues = TRUE)

subsampleSize

The number of observations for which certain (time-consuming) statistics will be calculated. The observations will be selected randomly among the rows of df

kmin, kfrac

For statistics that require the extraction of k nearest neighbors of a given point, the number of neighbors will be max(kmin, kfrac * nrow(df))

Value

A data table with statistics and p-values for pairwise comparisons of data sets, based on the provided column

Author(s)

Charlotte Soneson


csoneson/countsimQC documentation built on Nov. 7, 2024, 3:15 a.m.