add_numeric: Additional Predictor as numeric

View source: R/add_numeric.R

add_numericR Documentation

Additional Predictor as numeric

Description

Additional predictor as numeric.

Usage

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

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.

Value

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


maxEff documentation built on Nov. 5, 2025, 7:30 p.m.