Learn R Programming

MLPA (version 1.10.0)

model: Object constructor for binary predictors

Description

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

Usage

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.

See Also

classify

Examples

Run this code
# NOT RUN {
  # 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)
# }

Run the code above in your browser using DataLab