data.reduc: Basic statistics

View source: R/DataReduc.R

data.reducR Documentation

Basic statistics

Description

Calculate basic statistics from well-by-well data to condition data

Usage

data.reduc(
  data.table,
  NameIndex,
  VarIndexes,
  Ctrl,
  it = 0,
  spt = "_",
  sem = F,
  trunc.set = F,
  d.norm = F,
  alt = "two.sided"
)

Arguments

data.table

A data.frame on which stats are applied

NameIndex

The column name/index from data.table where condition name is found

VarIndexes

The column names/indexes whit variables of interest

Ctrl

A character string that contains the name of the control against which t.test will be performed

it

Shall t.test/normalization be applied recursively ?

spt

The linker used in condition names (see example)

sem

Shall sem be calculated instead of sd ?

trunc.set

Shall data outlyers be removed automatically?

d.norm

Shall normalization to control be applied ?

alt

See alt parameter from t.test function.

Value

A data.frame containing mean,sd/sem,p-value from t-test, asterisks of signativity for each variable

Author(s)

Allan Sauvat, allan.sauvat@gustaveroussy.fr

Examples

#Not running
Results = data.reduc(data.table = Summary,NameIndex=1,VarIndexes=10:13,
Ctrl='Ctr_8H',sem=T, trunc.set=T, d.norm=T, alt='greater')


Ahlallan/MetaxpR documentation built on July 9, 2023, 1:59 p.m.