Title: | Computes PDF, CDF, Quantile, Random Numbers and Measures of Inference for 3 General Families of Distributions |
---|---|
Description: | Computes the probability density function, the cumulative density function, quantile function, random numbers and measures of inference for the following families exponentiated generalized gull alpha power family, exponentiated gull alpha powerfamily, gull alpha power family. |
Authors: | Mutua Kilai, Gichuhi Waititu, Wanjoya Kibira |
Maintainer: | Mutua Kilai <[email protected]> |
License: | MIT + file LICENSE |
Version: | 0.1.0 |
Built: | 2025-01-27 05:10:32 UTC |
Source: | https://github.com/cran/NovelDistns |
A data set containing remission time in months of a sample of 128 bladder cancer patients
data("bladderdata")
data("bladderdata")
A data frame with 128 observations on the following variable.
time
a numeric vector
E. T. Lee and J. Wang, Statistical Methods for Survival Data Analysis, vol. 476, John Wiley & Sons, Hoboken, NJ, USA, 2003.
data(bladderdata) ## maybe str(bladderdata) ; plot(bladderdata) ...
data(bladderdata) ## maybe str(bladderdata) ; plot(bladderdata) ...
Computes the pdf, cdf, quantile, and random numbers and estimates the parameters of the exponentiated gull alpha power family of distribution specified by the cdf.
where is the baseline family parameter vector. Also, b>0 are the extra parameters induced to the baseline cumulative distribution function (cdf)
G
whose pdf is g
.
Here, the baseline G
refers to the cdf of: exponential, rayleigh and weibull.
regap(n, dist, param) qegap(p, dist, param, log.p = FALSE, lower.tail = TRUE) pegap(data, dist, param, log.p = FALSE, lower.tail = TRUE) degap(data, dist, param, log = FALSE) mlegap(data, dist,starts, method="SANN")
regap(n, dist, param) qegap(p, dist, param, log.p = FALSE, lower.tail = TRUE) pegap(data, dist, param, log.p = FALSE, lower.tail = TRUE) degap(data, dist, param, log = FALSE) mlegap(data, dist,starts, method="SANN")
n |
number of realizations to be generated. |
p |
quantile value between 0 and 1. |
data |
Vector of observations. |
param |
parameter vector |
log |
If |
log.p |
If |
lower.tail |
If |
dist |
The name of family's pdf including: " |
method |
the method for optimizing the log likelihood function. It can be one of |
starts |
initial values of |
A vector of the same length as data
, giving the pdf values computed at data
.
A vector of the same length as data
, giving the cdf values computed at data
.
A vector of the same length as p
, giving the quantile values computed at p
.
A vector of the same length as n
, giving the random numbers realizations.
A sequence of goodness-of-fit statistics such as: Akaike Information Criterion (AIC
), Consistent Akaike Information Criterion (CAIC
), Bayesian Information Criterion (BIC
), Hannan-Quinn information criterion (HQIC
), Cramer-von Misses statistic (CM
), Anderson Darling statistic (AD
), log-likelihood statistic (log
). The Kolmogorov-Smirnov (KS
) test statistic and corresponding p-value
and the convergence status.
Mutua Kilai, Gichuhi A. Waititu, Wanjoya A. Kibira
x=runif(10,min=0,max=1) regap(10,"exp",c(0.3,0.5,0.7)) qegap(0.6,"exp",c(0.3,0.5,0.7)) pegap(x,"exp",c(0.3,0.5,0.7)) degap(x,"exp",c(0.3,0.5,0.7)) mlegap(x,"exp",c(0.3,0.5,0.7))
x=runif(10,min=0,max=1) regap(10,"exp",c(0.3,0.5,0.7)) qegap(0.6,"exp",c(0.3,0.5,0.7)) pegap(x,"exp",c(0.3,0.5,0.7)) degap(x,"exp",c(0.3,0.5,0.7)) mlegap(x,"exp",c(0.3,0.5,0.7))
Computes the pdf, cdf, quantile, and random numbers and estimates the parameters of the exponentiated G
gull alpha power family of distribution due to Kilai et al. (2022) specified by the cdf.
where is the baseline family parameter vector. Also, a>0, b>0 are the extra parameters induced to the baseline cumulative distribution function (cdf)
G
whose pdf is g
.
Here, the baseline G
refers to the cdf of: exponential, rayleigh and weibull.
reggap(n, dist, param) qeggap(p, dist, param, log.p = FALSE, lower.tail = TRUE) peggap(data, dist, param, log.p = FALSE, lower.tail = TRUE) deggap(data, dist, param, log = FALSE) mleggap(data, dist,starts, method="SANN")
reggap(n, dist, param) qeggap(p, dist, param, log.p = FALSE, lower.tail = TRUE) peggap(data, dist, param, log.p = FALSE, lower.tail = TRUE) deggap(data, dist, param, log = FALSE) mleggap(data, dist,starts, method="SANN")
n |
number of realizations to be generated. |
p |
quantile value between 0 and 1. |
data |
Vector of observations. |
param |
parameter vector |
log |
If |
log.p |
If |
lower.tail |
If |
dist |
The name of family's pdf including: " |
method |
the method for optimizing the log likelihood function. It can be one of |
starts |
initial values of |
A vector of the same length as data
, giving the pdf values computed at data
.
A vector of the same length as data
, giving the cdf values computed at data
.
A vector of the same length as p
, giving the quantile values computed at p
.
A vector of the same length as n
, giving the random numbers realizations.
A sequence of goodness-of-fit statistics such as: Akaike Information Criterion (AIC
), Consistent Akaike Information Criterion (CAIC
), Bayesian Information Criterion (BIC
), Hannan-Quinn information criterion (HQIC
), Cramer-von Misses statistic (CM
), Anderson Darling statistic (AD
), log-likelihood statistic (log
). The Kolmogorov-Smirnov (KS
) test statistic and corresponding p-value
and the convergence status.
Mutua Kilai, Gichuhi A. Waititu, Wanjoya A. Kibira
Mutua Kilai et al (2022) A new generalization of Gull Alpha Power Family of distributions with application to modeling COVID-19 mortality rates, https://doi.org/10.1016/j.rinp.2022.105339.
x=runif(10,min=0,max=1) reggap(10,"exp",c(0.3,0.5,0.7,0.8)) qeggap(0.6,"exp",c(0.3,0.5,0.7,0.8)) peggap(x,"exp",c(0.3,0.5,0.7,0.8)) deggap(x,"exp",c(0.3,0.5,0.7,0.8)) mleggap(x,"exp",c(0.3,0.5,0.7,0.8))
x=runif(10,min=0,max=1) reggap(10,"exp",c(0.3,0.5,0.7,0.8)) qeggap(0.6,"exp",c(0.3,0.5,0.7,0.8)) peggap(x,"exp",c(0.3,0.5,0.7,0.8)) deggap(x,"exp",c(0.3,0.5,0.7,0.8)) mleggap(x,"exp",c(0.3,0.5,0.7,0.8))
Computes the pdf, cdf, quantile, and random numbers and estimates the parameters of the exponentiated gull alpha power family of distribution specified by the cdf.
where is the baseline family parameter vector.Here, the baseline
G
refers to the cdf of: exponential, rayleigh and weibull.
rgap(n, dist, param) qgap(p, dist, param, log.p = FALSE, lower.tail = TRUE) pgap(data, dist, param, log.p = FALSE, lower.tail = TRUE) dgap(data, dist, param, log = FALSE) mlgap(data, dist,starts, method="SANN")
rgap(n, dist, param) qgap(p, dist, param, log.p = FALSE, lower.tail = TRUE) pgap(data, dist, param, log.p = FALSE, lower.tail = TRUE) dgap(data, dist, param, log = FALSE) mlgap(data, dist,starts, method="SANN")
n |
number of realizations to be generated. |
p |
quantile value between 0 and 1. |
data |
Vector of observations. |
param |
parameter vector |
log |
If |
log.p |
If |
lower.tail |
If |
dist |
The name of family's pdf including: " |
method |
the method for optimizing the log likelihood function. It can be one of |
starts |
initial values of |
A vector of the same length as data
, giving the pdf values computed at data
.
A vector of the same length as data
, giving the cdf values computed at data
.
A vector of the same length as p
, giving the quantile values computed at p
.
A vector of the same length as n
, giving the random numbers realizations.
A sequence of goodness-of-fit statistics such as: Akaike Information Criterion (AIC
), Consistent Akaike Information Criterion (CAIC
), Bayesian Information Criterion (BIC
), Hannan-Quinn information criterion (HQIC
), Cramer-von Misses statistic (CM
), Anderson Darling statistic (AD
), log-likelihood statistic (log
). The Kolmogorov-Smirnov (KS
) test statistic and corresponding p-value
and the convergence status.
Mutua Kilai, Gichuhi A. Waititu, Wanjoya A. Kibira
Muhammad et al (2020) A Gull Alpha Power Weibull distribution with applications to real and simulated data. https://doi.org/10.1371/journal.pone.0233080
x=runif(10,min=0,max=1) rgap(10,"exp",c(0.3,0.5)) qgap(0.6,"exp",c(0.3,0.5)) pgap(x,"exp",c(0.3,0.5)) dgap(x,"exp",c(0.3,0.5)) mlgap(x,"exp",c(0.3,0.5))
x=runif(10,min=0,max=1) rgap(10,"exp",c(0.3,0.5)) qgap(0.6,"exp",c(0.3,0.5)) pgap(x,"exp",c(0.3,0.5)) dgap(x,"exp",c(0.3,0.5)) mlgap(x,"exp",c(0.3,0.5))
A data set containing COVID-19 mortality rates for Italy for a period of 59 days from 27 Feb 2020 to 27 April 2020.
data("italydata")
data("italydata")
A data frame with 59 observations on the following 2 variables.
date
a character vector
rate
a numeric vector
https://covid19.who.int/
data(italydata) ## maybe str(italydata) ; plot(italydata) ...
data(italydata) ## maybe str(italydata) ; plot(italydata) ...
A data set containing number of failures for air conditioning systems of jet airplane data.
data("jetairplane")
data("jetairplane")
A data frame with 212 observations on the following variable.
failures
a numeric vector
Exponentiated Kumaraswamy-Dagum distribution with applications to income and lifetime data
data(jetairplane) ## maybe str(jetairplane) ; plot(jetairplane) ...
data(jetairplane) ## maybe str(jetairplane) ; plot(jetairplane) ...
A data set containing COVID-19 daily cases for Kenya for a period of 56 days from 28 March 2020 to 24 May 2020
data("kenyadata")
data("kenyadata")
A data frame with 58 observations on the following 2 variables.
date
a character vector
cases
a numeric vector
https://covid19.who.int/
data(kenyadata) ## maybe str(kenyadata) ; plot(kenyadata) ...
data(kenyadata) ## maybe str(kenyadata) ; plot(kenyadata) ...
A data set containing COVID-19 mortality rates for United Kingdom for a period of 76 days from 15 April 2020 to 30 June 2020
data("ukdata")
data("ukdata")
A data frame with 76 observations on the following 2 variables.
date
a character vector
rate
a numeric vector
https://covid19.who.int/
data(ukdata) ## maybe str(ukdata) ; plot(ukdata) ...
data(ukdata) ## maybe str(ukdata) ; plot(ukdata) ...