Could not Calibrate

Hello

I am new to Rstudio. I need help in calibration of data to Fuzzy set.

I have data but not able to calibrate. Please guide. The command which I used is written below:

Data file name is : Quest.CSV

Loaded following packages

ibrary(QCA)
library(admisc)
library(MASS)
library(calibrate)
library(ggplot2)

and Calibration Command I am using is:

calibrate(Quest, type = "Fuzzy", method = "direct", thresholds = "i=.95, c=.5, e=.05", logistic = TRUE, ecdf = FALSE)

Please guide where I am making mistake.

Thanks

Hi, and welcome!

Please see the FAQ: What's a reproducible example (`reprex`) and how do I create one? Using a reprex, complete with representative data will attract quicker and more answers.

For this post, Quest is missing which makes it difficult to understand what's going on or to even see the specific error message. Without more the most I can offer is to study the help(calibrate) page and its example below to see if all required arguments are passed to the function of the proper type and that no unexpected objects are included.

ibrary(QCA)
#> Error in ibrary(QCA): could not find function "ibrary"
library(admisc)
library(MASS)
library(calibrate)
library(ggplot2)

x <- rnorm(20,1)
y <- rnorm(20,1)
x <- x - mean(x)
y <- y - mean(y)
z <- x + y
b <- c(1,1)
plot(x,y,asp=1,pch=19)
tm<-seq(-2,2,by=0.5)
Calibrate.z <- calibrate(b,z,tm,cbind(x,y),axislab="Z",graphics=TRUE)

#> ---------- Calibration Results for  Z  ---------------------
#> Length of 1 unit of the original variable =  0.7071  
#> Angle                                     =  45 degrees
#> Optimal calibration factor                =  0.5  
#> Used calibration factor                   =  0.5  
#> Goodness-of-fit                           =  1  
#> Goodness-of-scale                         =  1  
#> ------------------------------------------------------------

Created on 2020-04-06 by the reprex package (v0.3.0)

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.