Learn R Programming

gfilinreg (version 2.0.1)

gfiCDF: Fiducial cumulative distribution function

Description

Fiducial cumulative distribution function of a parameter of interest.

Usage

gfiCDF(parameter, fidsamples)

Arguments

parameter

a right-sided formula defining the parameter of interest

fidsamples

fiducial samples, the output of gfilinreg or gfilinregPredictive

Value

The fiducial cumulative distribution function of the parameter.

Examples

Run this code
# NOT RUN {
set.seed(666L)
dat <- data.frame(
  group = gl(2, 5), 
  y = c(2*rlogis(5L), 10 + 2*rlogis(5L))
)
gfi <- gfilinreg(
  y ~ 0 + group, distr = "logistic", data = dat, L = 25L, nthreads = 2L
)
fcdf <- gfiCDF(~ group1 - group2, gfi)
fcdf(0)
plot(fcdf)
# }

Run the code above in your browser using DataLab