Skip to contents

Root class for Regression Models, e.g., CPH, logistic, and linear regression

Root class for Regression Models, e.g., CPH, logistic, and linear regression

Super class

CaseBasedReasoning::CBRBase -> RegressionModel

Public fields

model_params

rms arguments

weights

Weights for distance calculation

Methods

Inherited methods


Method print()

Prints information of the initialized object

Usage

RegressionModel$print()


Method variable_selection()

Fast backward variable selection with penalization (rms::fastbw)

Usage

RegressionModel$variable_selection(update = FALSE, ...)

Arguments

update

If TRUE, restrict the model's formula and terms to the selected variables. The model must then be fitted again with $fit().

...

Further arguments passed to rms::fastbw, e.g. rule or sls.

Returns

Character vector of the selected (retained) variables.


Method fit()

Fit the regression model

Usage

RegressionModel$fit()


Method clone()

The objects of this class are cloneable with this method.

Usage

RegressionModel$clone(deep = FALSE)

Arguments

deep

Whether to make a deep clone.