Description Super classes Methods Examples
A binary logistic model.
dymiumCore::Generic
-> dymiumCore::Model
-> dymiumModel::ModelBase
-> ModelBinaryChoice
new()
Initialisation function
ModelBinaryChoice$new(params, formula, preprocessing_fn = NULL)
params
a data.frame
object.
formula
a formula
object.
preprocessing_fn
a pre-processing function that gets applied to the
data given to the predict
method before making the prediction.
NULL
predict()
This predict method returns probabilities generated from the parameters of this Model object.
ModelBinaryChoice$predict(newdata, link_function = c("logit"))
newdata
a data.frame
object.
link_function
:: character(1)
default as 'logit' using stats::binomial(link = "logit")
. Choice of
'logit' and 'probit'. TODO: implement 'probit' option.
a numeric vector.
clone()
The objects of this class are cloneable with this method.
ModelBinaryChoice$clone(deep = FALSE)
deep
Whether to make a deep clone.
1 2 3 4 5 6 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.