CompositePrediction: Obtain a prediction from a composite model, given the pairs...

View source: R/compositemodelfunctions.R

CompositePredictionR Documentation

Obtain a prediction from a composite model, given the pairs to include in the model.

Description

Obtain a prediction from a composite model, given the pairs to include in the model.

Usage

CompositePrediction(
  pairs,
  modelResults,
  minCutoff,
  maxCutoff,
  useCutoff = FALSE,
  weights,
  targets,
  sources,
  averaging = FALSE,
  zeroOut = FALSE
)

Arguments

pairs

A list of pairs to include in the composite model.

modelResults

A ModelResults object.

minCutoff

Mininum cutoff for the prediction.

maxCutoff

Maximum cutoff for the prediction.

useCutoff

Whether or not to use the cutoff for prediction. Default is FALSE.

weights

The weight for each predictor, calculated using ComputeMetaFeatureWeights()

targets

Target analytes for all pairs

sources

Source analytes for all pairs

averaging

If TRUE, then averaging is used to combine predictors rather than retaining the same functional form for both the input and the output.

zeroOut

This parameter zeros out predictors outside of the allowed range.

Value

A final predicted value for each sample in the input data


ncats/MultiOmicsGraphPrediction documentation built on Aug. 23, 2023, 9:19 a.m.