Learn R Programming

ADLP (version 0.1.0)

custom_model: Custom Model Wrapper

Description

Function to define basic functionality needed for a custom model that does not fit the general framework of models that align with adlp_component

Usage

custom_model(formula, data, ...)

# S3 method for custom_model update(object, data, ...)

Value

An object of class custom_model. custom_model is a list that stores the required formula to update the model and the data used to update the model.

Arguments

formula

Formula needed that defines all variables required for the model

data

data to update custom model

...

Additional variables for update

object

Object of type custom model

Details

Custom model should support the S3 method formula and update.

Examples

Run this code
data("test_claims_dataset")
custom_model <- custom_model(claims~., data=test_claims_dataset)


Run the code above in your browser using DataLab