powered by
Risk premium for discrete risk factors in an insurance portfolio. For each level of the risk factor the risk premium is equal to the ratio between the severity and the exposure.
univariate_risk_premium( df, x, severity, exposure, nclaims = NULL, premium = NULL )
data.frame with insurance portfolio
column in df with risk factor
df
column in df with severity (default is NULL)
column in df with exposure
column in df with number of claims
column in df with premium (default is NULL)
An list of class univ_freq with components
univ_freq
data frame with risk premium
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
# NOT RUN { univariate_risk_premium(MTPL2, x = area, severity = amount, exposure = exposure) # }
Run the code above in your browser using DataLab