run_kurtosis: Calculate the Kurtosis of Sample Runs

View source: R/filter_objects.R

run_kurtosisR Documentation

Calculate the Kurtosis of Sample Runs

Description

This function calculates the kurtosis across data for each sample run.

Usage

run_kurtosis(data_only)

Arguments

data_only

a p \times n data.frame, where p is the number of peptides and n is the number of samples.

Details

Kurtosis is calculated by method 2 in the e1071 package, which is unbiased under normality. Within a sample NA values are ignorned in the kurtosis calculation. If all peptide abundance values are missing within a sample, the kurtosis is replaced by the overall mean of nonmissing kurtosis values for the data.

Value

data.frame with two elements: Sample, a character vector giving the sample names; and Kurtosis, a numeric vector giving the kurtosis

Author(s)

Lisa Bramer


pmartR/pmartR documentation built on March 4, 2024, 8:32 a.m.