custom_model {ADLP}R Documentation

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 class 'custom_model'
update(object, data, ...)

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.

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.

Examples

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



[Package ADLP version 0.1.0 Index]