add_num | R Documentation |
Additional predictor as numeric.
add_num(
start.model,
x,
data = eval(start.model$call$data),
mc.cores = switch(.Platform$OS.type, windows = 1L, detectCores()),
...
)
start.model |
a regression model (e.g., lm, glm, or coxph, etc.) |
x |
one-sided formula to specify
the numeric predictors |
data |
data.frame |
mc.cores |
integer scalar, see function mclapply |
... |
additional parameters, currently of no use |
Function add_num()
treats each additional predictor as a numeric variable,
and updates the starting model with each additional predictor.
Function add_num()
returns an add_num object,
which is a listof objects with an internal class 'add_num_'
.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.