data(fuzzydat)
fuzzylm(y ~ x, data = fuzzydat$lee, method = "plrls")
if (FALSE) {
# returns an error due to the incorrect number of spreads
fuzzylm(y ~ x, data = fuzzydat$dia, method = "fls", fuzzy.left.y = "yl")
}
# use the same column name for the left and right spread, when the method requests
# non-symmetric fuzzy numbers, but the data specify symmetric fuzzy numbers
fuzzylm(y ~ x, data = fuzzydat$dia, method = "fls", fuzzy.left.y = "yl", fuzzy.right.y = "yl")
Run the code above in your browser using DataLab