Learn R Programming

maxEff (version 0.2.2)

add_numeric: Additional Predictor as numeric

Description

Additional predictor as numeric.

Usage

add_numeric(
  start.model,
  x,
  data = eval(start.model$call$data),
  mc.cores = getOption("cores"),
  ...
)

Value

Function add_numeric() returns an add_numeric object, which is a listof objects with an internal class 'add_numeric_'.

Arguments

start.model

a regression model (e.g., lm, glm, or coxph, etc.)

x

one-sided formula to specify the numeric predictors \(x\)'s as the columns of one matrix column in data

data

data.frame

mc.cores

integer scalar, see function mclapply

...

additional parameters, currently of no use

Details

Function add_numeric() treats each additional predictor as a numeric variable, and updates the starting model with each additional predictor.