CoxBetaModel: Cox-Beta Model for Case-Based-Reasoning

Description Usage Format Usage Methods

Description

Regression beta coefficients obtained from a CPH regression model fitted on the training data are used for building a weighted distance measure between train and test data. Afterwards, we will use these weights for calculating a (n x m)-distance matrix, where n is the number of observations in the training data, and m is the number of observations of the test data. The user can use this distance matrix for further cluster analysis or for extracting for each test observation k (= 1,...,l) similar cases from the train data. We use the rms-package for model fitting, variable selection, and checking model assumptions. If the user omits the test data, this functions returns a n x n-distance matrix.

Usage

1

Format

A R6Class generator object

Usage

For usage details see Methods, Arguments, and Examples sections.

Methods

new(formula, ...)

This method is used to create an object of this class CoxBetaModel. Formula for analysis has to be provided.

fit(dtData)

Fits the CPH model.

...

See CBRBase class.


sipemu/case-based-reasoning documentation built on Nov. 14, 2019, 10:44 a.m.