Learn R Programming

insurancerating (version 0.5.2)

univariate_average_severity: Univariate average claim severity

Description

Average claim frequency for discrete risk factors in an insurance portfolio. For each level of the risk factor the average claim severity is equal to the ratio between the severity and the number of claims.

Usage

univariate_average_severity(
  df,
  x,
  severity,
  nclaims,
  exposure = NULL,
  premium = NULL
)

Arguments

df

data.frame with insurance portfolio

x

column in df with risk factor

severity

column in df with severity (default is NULL)

nclaims

column in df with number of claims

exposure

column in df with exposure

premium

column in df with premium (default is NULL)

Value

An list of class univ_freq with components

df

data frame with claim frequency

xvar

name of column in df with risk factor

severity

name of column in df with severity

nclaims

name of column in df with number of claims

exposure

name of column in df with exposure

premium

name of column in df with premium

Examples

Run this code
# NOT RUN {
univariate_average_severity(MTPL2, x = area, severity = amount,
                                         nclaims = nclaims, premium = premium)
# }

Run the code above in your browser using DataLab