Learn R Programming

FRCI (version 0.1.0)

psi: Fuzzy & Randomized Confidence Intervals

Description

Function to create "psi" type objects.

Usage

psi(method, distribution = "bernoulli", n = 1, sigma = 1)

Value

A list containing the following information.

[[1]]

the membership function

[[2]]

distribution

[[3]]

n

[[4]]

method

[[5]]

sigma

[[6]]

the upper and lower bound function of the support of the membership function.

Arguments

method

numeric value or name of the method that defines how obtain confidence intervals.

  • A numeric value utilizes the value as reference.

  • "GM" utilize the Gayer-Meeden method.

  • "AC" utilize the Agrest-Coull method (for the binomial distribution only).

  • "SC" utilizes the score method (for the poisson distribution only).

distribution

name of the distribution of the sample.

  • "normal" for the normal distribution.

  • "bernoulli" for the Bernoulli or binomial distribution.

  • "poisson" for the Poisson distribution.

n

sample size.

sigma

standard deviation (for the case of normal distribution).

References

FELIX, Carlos Henrique Trigo Nasser, Garcia, Nancy Lopes & Sousa, Alex Rodrigo dos Santos. (2025). Uma Nova Abordagem para Construção de Intervalos de Confiança Aleatorizados (Master's thesis, Universidade Estadual de Campinas, Campinas).

GEYER, C. J.; MEEDEN, G. D. Fuzzy and randomized confidence intervals and p-values. Statistical Science, v. 20, n. 4, p. 358–366, 2005. ISSN 08834237. Disponível em: http://www.jstor.org/stable/20061193.

Examples

Run this code
x<-psi("GM",n=10)
x[[1]](0.3,2)
x[[2]]
x[[3]]
x[[4]]
x[[5]]
x[[6]](2)

x<-psi(0.5,n=10)
x[[1]](0.6,8)
x[[2]]
x[[3]]
x[[4]]
x[[5]]
x[[6]](8)

Run the code above in your browser using DataLab