GOF | R Documentation |
Calculates mean error rate based on Diamond's distance of two variables representing triangular fuzzy numbers, where one is the response variable and the other is the prediction from a fuzzy regression model.
GOF(object, sc = 1e-06)
object |
a |
sc |
scaling constant used for numerical stability when spreads are equal to zero. |
The Diamond's distance of two triangular fuzzy numbers is sum of squared differences of the core and both support values of the fuzzy numbers.
A numeric.
Diamond P. (1988) Fuzzy least squares. Information Sciences 46(3): 141-157.
Wang N., Zhang W.-X., Mei C.-L. (2007) Fuzzy nonparametric regression based on local linear smoothing technique. Information Sciences 177: 3882-3900.
fuzzylm
data(bats)
f <- fuzzylm(temperature ~ MAST, data = bats)
GOF(f)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.