Learn R Programming

ANOVA.TFNs (version 1.0)

sse.fuzzy: Sum of Squares within treatments (Errors) for Triangular Fuzzy observation

Description

This function calculate Sum of Squares Errors (SSE) for Triangular Fuzzy observation on the basis of m=1,2,3,... (Parchami et al., 2017, 2018).

Usage

sse.fuzzy(Data, m = 1)

Arguments

Data

a matrix with \(dim=c(n, 4)\) and FANOVA.Data format.

m

a positive integer number which related to the weight of distance between two cuts of fuzzy numbers, and its default is m=1. For more details see (Parchami et al., 2017, 2018).

See Also

FuzzyNumbers

Examples

Run this code
# NOT RUN {
# Example 1: 
data(Data)

sse.fuzzy( Data )  
# }
# NOT RUN {
 # For m=1 
# }
# NOT RUN {
sse.fuzzy( Data, m=2)

# Example 2  ( Checking relation  sst = sstr + sse  for different m):
sst.fuzzy(Data) == sstr.fuzzy(Data) + sse.fuzzy(Data)
sst.fuzzy(Data, m=3) == sstr.fuzzy(Data, m=3) + sse.fuzzy(Data, m=3)

for(m in 1:10) 
  print( round(sst.fuzzy(Data, m), 10) == round(sstr.fuzzy(Data, m) + sse.fuzzy(Data, m), 10) )
# }

Run the code above in your browser using DataLab