Exposure for discrete risk factors in an insurance portfolio.
univariate_exposure(df, x, exposure = exposure)
data.frame with insurance portfolio
column in df
with risk factor
column in df
with exposure
An list of class univ_lossratio
with components
data frame with average premium
name of column in df with risk factor
name of column in df with exposure
# NOT RUN {
univariate_exposure(MTPL2, area, exposure)
# }
Run the code above in your browser using DataLab