pgammaDif: True CDF for difference in means \bar{x} - \bar{y}

Description Usage Arguments Examples

View source: R/CDF.R

Description

This function computes the true CDF for the difference in means \bar{x} - \bar{y} of gamma random variables under the null of equality in distributions. CDF derived by Klar (2015).

Usage

1
pgammaDif(q, nx, ny, alpha, lambda)

Arguments

q

scalar or vector of quantiles

nx

sample size of first group

ny

samle size of second group

alpha

common parameter value

lambda

common parameter value

Examples

1
2
3
4
5
6
7
nx <- 60
ny <- 60
alpha <- 1
lambda <- 4
q <- seq(-0.2, 0.2, 0.001)
plot(q, pgammaDif(q = q, nx, ny, alpha, lambda),
     type = "l", ylab = "F(q)")

bdsegal/gammaDist documentation built on July 22, 2019, 1:26 p.m.