Hi Adrian,
Could I please ask you three questions related to the calibration function in R?
1. calibrate() - method = "direct"
When I do not write the line "method="direct" ", does the calibrate function still use the direct method to calibrate data (in other words, the direct method is the default setting)?
mydata$efficacy <- calibrate(mydata$efficacy,
type = "fuzzy",
method = "direct",
thresholds = c(-0.175,0.15,0.4),
logistic = TRUE)
2. Following above, if I want to use the indirect method to calibrate, I should specify it, by writing "method="indirect""?
3. How do you use the calibrate () function to do the reverse calibration for the crisp set (direct method)?
mydata$low_short <- calibrate(mydata$low_short,
type="crisp",
thresholds = c(0.15))
If I use this code, the results are: any case above 0.15 is assigned 1, and below 0.15 is assigned 0. - this is not what I wanted. I would like it reversed, that is to assign 1 to any case below 0.15.
Can I use the following code? Does it still follow the direct method to calibrate this condition?
Or direct method does not really apply to the crisp set? (direct and indirect methods only apply to fuzzy set calibration)
mydata$low_short <- ifelse (mydata$low_short >0.15,0,1)
Thank you
Kind regards
Sarah