makeDF: Construct data frame with pairwise statistics

Description Usage Arguments Value Author(s)

View source: R/makeDF.R

Description

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

Usage

1
2
3
4
5
6
7
8
9
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


countsimQC documentation built on Feb. 5, 2021, 2:02 a.m.