set.seed(42)
sim = tibble::tibble(y = stats::runif(7,0,10),
x1 = c(1,rep(2,3),rep(3,3)),
x2 = c(rep(1,2),rep(2,2),rep(3,3)))
fo1 = fuzzyoverlay(y~x1+x2,data = sim, method = 'and')
fo1
fo2 = fuzzyoverlay(y~x1+x2,data = sim, method = 'or')
fo2
Run the code above in your browser using DataLab