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