model: Object constructor for binary predictors

Description Usage Arguments Value Author(s) See Also Examples

View source: R/model.R

Description

This function aggregates the data required to predict class in classify.

Usage

1
2
  model(groupMeans, groupSDs, groupNames, groupColors = c("blue", "red"),
    threshold = 0.9, geneNames, geneTs, geneMs)

Arguments

groupMeans

Numeric vector of length 2, the means of the scores in each group as computed on a training series.

groupSDs

Numeric vector of length 2, the standard deviations of the scores in each group as computed on a training series.

groupNames

Character vector of length 2, the names of the group described in groupMeans, groupSDs and groupColors.

groupColors

Character vector of length 2, the colors to use to plot each group (see par for allowed values).

threshold

Single numeric vector, the confidence threshold to use for prediction (a call will be made only if it is at least at this level of certainty).

geneNames

Character vector, the names of the genes whose expression is to be used.

geneTs

Numeric vector, for each gene in geneNames, the statistic of a t.test comparing its expression between the two groups in a training series.

geneMs

Numeric vector, for each gene in geneNames, the mean expression in the whole training series.

Value

Returns an S3 object of class fsaModel.

Author(s)

Sylvain Mareschal

See Also

classify

Examples

1
2
3
4
5
6
7
8
  # Build from design file
  design <- designFile(system.file("extdata/design.conf", package="MLPA"))
  design$model$disable <- NULL
  model <- do.call("model", design$model)
  
  # Observe model
  print(model)
  plot(model)

MLPA documentation built on May 2, 2020, 1:06 a.m.

Related to model in MLPA...