layer_glm: Layer estimated using a generalized linear model

Description Usage Arguments

View source: R/layer.R

Description

Adds a new layer to the hierarchical reserving model. This layer will be estimated using the glm framework.

Usage

1
layer_glm(obj, name, family, filter = NULL, transformation = NULL)

Arguments

obj

The hierarchical reserving model

name

Character, name of the layer. This name should match the variable name in the data set

family

family argument passed to the glm function

filter

Function with

  • input: Data set with same structure as the data passed to hirem

  • output: TRUE/FALSE vector with same length as the number of rows in the input data set.
    FALSE indicates that this layer is zero for the current record.

transformation

Object of class hirem_transformation specifying the transformation applied before modelling this layer.


jonascrevecoeur/hirem documentation built on Dec. 14, 2021, 3 p.m.