adapcheckdatainput: Check properties of input data

Description Usage Arguments Details Value

View source: R/adapcheckdatainput.R

Description

For internal use in the mixADA GUI.

Usage

1
2
3
4
5
adapcheckdatainput(dat, response, treatment, runsnorm, sampleID,
 normalizeby, forfitting, runsmodel = NULL, spiked = NULL)

adapcheckdatainputsimple(dat, response, treatment, sampleID, forfitting,
 runsmodel = NULL, spiked = NULL)

Arguments

dat

a data.frame

response

a single character string, naming a column with numeric entries in dat

treatment

a single character string, naming a column (factor) in dat

runsnorm

a character string or vector, naming those columns (factors) in dat that, after combining factor levels, uniquely identify technical units within which normalization should take place

sampleID

a character string or vector, naming those columns (factors) in dat that, after combining factor levels, uniquely identify biological samples

normalizeby

a character string naming the level in dat[,treatment] which is supposed to serve as negative control for normalization, within each technical unit

forfitting

a character string naming the level in dat[,treatment], which define that subset of data for which mixture models are to be fitted (the unspiked data, if spiked data are in dat)

runsmodel

a character string or vector, naming those columns (factors) in dat, that, after combining factor levels, will define the variance component of technical units in mixed effects and mixture model fitting

spiked

a character string naming the level in dat[,treatment], which define that subset of data which is to be used for CCP estimation together with that in forfitting

Details

Checks input data for completeness, appropriate properties of specified columns, combines severeal factors to one nwe factor if needed and ought to give comprehensive warnings and errors if data format is insufficient for later use in normalization, model fitting, etc.

Value

a list with elements

DATINT

The input data set with additional columns specifying subset for later use in normalization, model fitting, CCP estimation

normTAB

a table with sample sizes of negative controles for normalization in each technical unit

textnormunit

character string, for labelling output in mixADA GUI

textnormlev

character string, for labelling output in mixADA GUI


schaarschmidt/mixADA documentation built on May 29, 2019, 3:25 p.m.