train: train

Description Usage Arguments Value Author(s)

View source: R/training.R

Description

train predictor

Usage

1
2
train(data, covariates, cellPercentages, model = formula(cellPercentages ~
  covariates + data), ncomp = 50, keep.model = FALSE, ...)

Arguments

data

matrix with gene expression(counts) or DNA methylation beta-values

covariates

matrix of covariates to correct for in the model e.g. Age and Gender

cellPercentages

matrix of cell percentages for which the predictor will be trained

model

formula e.g. log10(cellPercentages+1)~covariates+data

ncomp

total number of pls components that will be tested

keep.model

logical default FALSE do not return full pls-model

...

additional parameters for plsr see ?plsr

Value

prediction model plsr object

Author(s)

mvaniterson


mvaniterson/wbccPredictor documentation built on May 23, 2019, 10:53 a.m.