# NOT RUN {
## Example using profit dataset
data(profitSWG)
# First, compute the CE values
c1 <- certainty(data = profitSWG,ival = .5,fval = 4,utility = "Power")
ce_values <- c1$CE_values # CE table
ce_rac <- c1$RAC # RAC vector
# The Risk premium values respect to Serenade treatment
rp <- premium(tbase = "serenade", ce_data = ce_values,rac = ce_rac, utility = "Power")
rp$PremiumRisk # absolute values
rp$PremiumRiskPer100 # values in percentage
rp$RP_plot() # plot
# }
Run the code above in your browser using DataLab