pgammaDifSaddle: Saddlepoint distribution for difference in means, \bar{x} -...

Description Usage Arguments Examples

View source: R/saddle_point.R

Description

This function calculates the saddlepoint cumulative distribution for the difference in means, \bar{x} - \bar{y} of gamma random variables under the null of equal distributions. Only valid for \bar{x} - \bar{y} \ne 0.

Usage

1
pgammaDifSaddle(q, nx, ny, alpha, lambda, lower.tail = TRUE)

Arguments

q

scalar or vector of quantiles

nx

sample size of first group

ny

sample 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, pgammaDifSaddle(q = q, nx, ny, alpha, lambda),
     type = "l", ylab = "F(q)")

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