predictWithLinRegModel: Apply a fit linear model to predict the response based on new...

Description Usage Arguments Value

View source: R/predictWithLinRegModel.R

Description

Apply a fit linear model to predict the response based on new data.

Usage

1
2
3
4
5
6
7
predictWithLinRegModel(
  model = NULL,
  useModelYIntercept,
  coeffVec = NULL,
  yIntercept = 0,
  newData
)

Arguments

model

A fit linear model (currently restricted to models of class enResults). If this parameter is provided, coeffVec and yIntercept parameters are not needed, and will be ignored if provided.

useModelYIntercept

A boolean value indicating whether to use the intercept term provided by the model (default = TRUE)

coeffVec

A named vector of coefficient weights (which need not be specified if model parameter is provided instead).

yIntercept

An intercept term (default = 0)

newData

A matrix with predictor variable data over observations (specified along rows or columns).

Value

A vector of predicted response values.


CBIIT/rcellminerElasticNet documentation built on Sept. 8, 2020, 6:21 p.m.