Learn R Programming

FuzzyStatTra (version 1.0)

SimulFRSTra:

Description

This function generates n trapezoidal responses based on the fuzzy rating scale. They are simulated mimicking the human behavior, considering for it a finite mixture of three different procedures (for a detailed explanation of the simulation see the paper [1] below), and generated in the interval [1,k], being k the number of Likert responses of the supposed questionnaire.

Usage

SimulFRSTra(n, k, w1, w2, w3, p, q)

Arguments

n
positive integer. It is the number of trapezoidal fuzzy numbers to be generated.
k
positive integer and >1. It's the number of Likert responses of the supposed questionnaire. The trapezoidal fuzzy responses will be generated in the interval [1,k].
w1
number in [0,1]. It should be fulfilled that w1+w2+w3=1.
w2
number in [0,1]. It should be fulfilled that w1+w2+w3=1.
w3
number in [0,1]. It should be fulfilled that w1+w2+w3=1.
p
number >0. It is the first parameter of the beta distribution.
q
number >0. It is the second parameter of the beta distribution.

Value

This function returns n trapezoidal fuzzy rating responses contained in a matrix of dimension n x 4, with values in the interval [1,k]. Each trapezoidal fuzzy rating response is characterized by its four values inf0,inf1,sup1,sup0.

Details

See examples

References

[1] De la Rosa de Saa, S.; Gil, M.A.; Gonzalez-Rodriguez, G.; Lopez, M.T.; Lubiano M.A.: Fuzzy rating scale-based questionnaires and their statistical analysis, IEEE Trans. Fuzzy Syst. 23(1), pp. 111-126 (2015)

See Also

SimulCASE1, SimulCASE2, SimulCASE3, SimulCASE4

Examples

Run this code
# Example 1:
SimulFRSTra(100,6,0.05,0.35,0.6,2,1)

Run the code above in your browser using DataLab