Univariate analysis for discrete risk factors in an insurance portfolio. The following summary statistics are calculated:
frequency (i.e. number of claims / exposure)
average severity (i.e. severity / number of claims)
risk premium (i.e. severity / exposure)
loss ratio (i.e. severity / premium)
average premium (i.e. premium / exposure)
univariate_all(
df,
x,
severity = NULL,
nclaims = NULL,
exposure = NULL,
premium = NULL
)
data.frame with insurance portfolio
column in df
with risk factor
column in df
with severity (default is NULL)
column in df
with number of claims (default is NULL)
column in df
with exposure (default is NULL)
column in df
with premium (default is NULL)
An list of class univ_all
with components
data frame
name of column in df with risk factor
name of column in df with severity
name of column in df with number of claims
name of column in df with exposure
name of column in df with premium