fls | R Documentation |
The function calculates fuzzy regression coeficients using the fuzzy least squares (FLS) method proposed by Diamond (1988) for non-symmetric triangular fuzzy numbers.
fls(x, y)
x |
two column matrix with the second column representing independent variable observations. The first column is related to the intercept, so it consists of ones. Missing values not allowed. |
y |
matrix of dependent variable observations. The first column contains the central tendency, the second column the left spread and the third column the right spread of non-symmetric triangular fuzzy numbers. Missing values not allowed. |
The FLS method for the fuzzy linear regression fits a simple model.
Returns a fuzzylm
object that includes the model coefficients, limits
for data predictions from the model and the input data.
Preferred use is through the fuzzylm
wrapper function with argument
method = "fls"
.
Diamond, P. (1988) Fuzzy least squares. Information Sciences 46(3): 141-157.
fuzzylm
data(fuzzydat)
x <- fuzzydat$dia[, 1, drop = FALSE]
x <- cbind(rep(1, nrow(x)), x)
y <- fuzzydat$dia[, c(2,3,3)]
fls(x = x, y = y)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.