Package invgamma. May 7, 2017

Similar documents
Package skellam. R topics documented: December 15, Version Date

Package emg. R topics documented: May 17, 2018

Package Delaporte. August 13, 2017

Package sdprisk. December 31, 2016

Package polypoly. R topics documented: May 27, 2017

Package MultisiteMediation

Package HIMA. November 8, 2017

Package depth.plot. December 20, 2015

Package gtheory. October 30, 2016

Package cartogram. June 21, 2018

Package EMVS. April 24, 2018

Package pearson7. June 22, 2016

Package goftest. R topics documented: April 3, Type Package

Package BNN. February 2, 2018

Package covsep. May 6, 2018

Package gk. R topics documented: February 4, Type Package Title g-and-k and g-and-h Distribution Functions Version 0.5.

Package NlinTS. September 10, 2018

Package scpdsi. November 18, 2018

Package LindleyR. June 23, 2016

Package ShrinkCovMat

Package RTransferEntropy

Package SK. May 16, 2018

Package SimSCRPiecewise

Package Tcomp. June 6, 2018

Package gambin. July 12, 2018

Package sbgcop. May 29, 2018

Package FinCovRegularization

Package thief. R topics documented: January 24, Version 0.3 Title Temporal Hierarchical Forecasting

Package rgabriel. February 20, 2015

Package elhmc. R topics documented: July 4, Type Package

Package MicroMacroMultilevel

Package varband. November 7, 2016

Package reinforcedpred

Package BayesNI. February 19, 2015

Package bigtime. November 9, 2017

Package jmcm. November 25, 2017

Package esreg. August 22, 2017

Package bivariate. December 10, 2018

Package locfdr. July 15, Index 5

Package ltsbase. R topics documented: February 20, 2015

Package generalhoslem

Package robustrao. August 14, 2017

Package timelines. August 29, 2016

Package leiv. R topics documented: February 20, Version Type Package

Package noncompliance

Package OGI. December 20, 2017

Package blme. August 29, 2016

Package matrixnormal

Package CPE. R topics documented: February 19, 2015

Package jmuoutlier. February 17, 2017

Package supernova. February 23, 2018

Package EnergyOnlineCPM

Package RSwissMaps. October 3, 2017

Package nardl. R topics documented: May 7, Type Package

Package RootsExtremaInflections

Package SimCorMultRes

Package msu. September 30, 2017

Package funrar. March 5, 2018

Package asus. October 25, 2017

Package flan. R topics documented: October 30, 2017

Package hurdlr. R topics documented: July 2, Version 0.1

Package horseshoe. November 8, 2016

Package TimeSeries.OBeu

Package dhsic. R topics documented: July 27, 2017

Package tspi. August 7, 2017

Package rarpack. August 29, 2016

Package GD. January 12, 2018

Laboratorio di ST1 Lezione 4

Package TSF. July 15, 2017

Package severity. February 20, 2015

Package alphaoutlier

Package cvequality. March 31, 2018

Package sodavis. May 13, 2018

Package ADPF. September 13, 2017

Package WaveletArima

Package LIStest. February 19, 2015

Package gwqs. R topics documented: May 7, Type Package. Title Generalized Weighted Quantile Sum Regression. Version 1.1.0

Package TSPred. April 5, 2017

Package dina. April 26, 2017

Package camsrad. November 30, 2016

Package flexcwm. R topics documented: July 11, Type Package. Title Flexible Cluster-Weighted Modeling. Version 1.0.

Package ensemblepp. R topics documented: September 20, Title Ensemble Postprocessing Data Sets. Version

Package MPkn. May 7, 2018

Package aspi. R topics documented: September 20, 2016

Package MAPA. R topics documented: January 5, Type Package Title Multiple Aggregation Prediction Algorithm Version 2.0.4

Package Metrics. November 3, 2017

Package gumbel. February 15, 2013

Package coop. November 14, 2017

Package flexcwm. R topics documented: July 2, Type Package. Title Flexible Cluster-Weighted Modeling. Version 1.1.

Package hds. December 31, 2016

Package beam. May 3, 2018

Package rdefra. March 20, 2017

Package BGGE. August 10, 2018

Package effectfusion

Package face. January 19, 2018

Package IsingFit. September 7, 2016

Package MTA. R topics documented: May 14, Title Multiscalar Territorial Analysis Version 0.1.2

Package robis. July 2, 2018

Package netdep. July 10, 2018

Package ForecastCombinations

Transcription:

Package invgamma May 7, 2017 Type Package Title The Inverse Gamma Distribution Version 1.1 URL https://github.com/dkahle/invgamma BugReports https://github.com/dkahle/invgamma/issues Description Light weight implementation of the standard distribution functions for the inverse gamma distribution, wrapping those for the gamma distribution in the stats package. License GPL-2 RoxygenNote 6.0.1 NeedsCompilation no Author David Kahle [aut, cre, cph], James Stamey [aut, cph] Maintainer David Kahle <david.kahle@gmail.com> Repository CRAN Date/Publication 2017-05-07 05:22:52 UTC R topics documented: invchisq........................................... 2 invexp............................................ 3 invgamma.......................................... 4 Index 6 1

2 invchisq invchisq The Inverse (non-central) Chi-Squared Distribution Description Usage Density, distribution function, quantile function and random generation for the inverse chi-squared distribution. dinvchisq(x, df, ncp = 0, log = FALSE) pinvchisq(q, df, ncp = 0, lower.tail = TRUE, log.p = FALSE) qinvchisq(p, df, ncp = 0, lower.tail = TRUE, log.p = FALSE) rinvchisq(n, df, ncp = 0) Arguments x, q vector of quantiles. df ncp log, log.p lower.tail p n Details degrees of freedom (non-negative, but can be non-integer). non-centrality parameter (non-negative). logical; if TRUE, probabilities p are given as log(p). logical; if TRUE (default), probabilities are P[X <= x] otherwise, P[X > x]. vector of probabilities. number of observations. If length(n) > 1, the length is taken to be the number required. The functions (d/p/q/r)invchisq simply wrap those of the standard (d/p/q/r)chisq R implementation, so look at, say, dchisq for details. See Also dchisq; these functions just wrap the (d/p/q/r)chisq functions. Examples s <- seq(0, 3,.01) plot(s, dinvchisq(s, 3), type = 'l') f <- function(x) dinvchisq(x, 3) q <- 2

invexp 3 (p <- pinvchisq(q, 3)) qinvchisq(p, 3) # = q mean(rinvchisq(1e5, 3) <= q) f <- function(x) dinvchisq(x, 3, ncp = 2) q <- 1.5 (p <- pinvchisq(q, 3, ncp = 2)) qinvchisq(p, 3, ncp = 2) # = q mean(rinvchisq(1e7, 3, ncp = 2) <= q) invexp The Inverse Exponential Distribution Description Density, distribution function, quantile function and random generation for the inverse exponential distribution. Usage dinvexp(x, rate = 1, log = FALSE) pinvexp(q, rate = 1, lower.tail = TRUE, log.p = FALSE) qinvexp(p, rate = 1, lower.tail = TRUE, log.p = FALSE) rinvexp(n, rate = 1) Arguments x, q vector of quantiles. rate log, log.p lower.tail p n degrees of freedom (non-negative, but can be non-integer). logical; if TRUE, probabilities p are given as log(p). logical; if TRUE (default), probabilities are P[X <= x] otherwise, P[X > x]. vector of probabilities. number of observations. If length(n) > 1, the length is taken to be the number required.

4 invgamma Details The functions (d/p/q/r)invexp simply wrap those of the standard (d/p/q/r)exp R implementation, so look at, say, dexp for details. See Also dexp; these functions just wrap the (d/p/q/r)exp functions. Examples s <- seq(0, 10,.01) plot(s, dinvexp(s, 2), type = 'l') f <- function(x) dinvexp(x, 2) q <- 3 (p <- pinvexp(q, 2)) qinvexp(p, 2) # = q mean(rinvexp(1e5, 2) <= q) pinvgamma(q, 1, 2) invgamma The Inverse Gamma Distribution Description Density, distribution function, quantile function and random generation for the inverse gamma distribution. Usage dinvgamma(x, shape, rate = 1, scale = 1/rate, log = FALSE) pinvgamma(q, shape, rate = 1, scale = 1/rate, lower.tail = TRUE, log.p = FALSE) qinvgamma(p, shape, rate = 1, scale = 1/rate, lower.tail = TRUE, log.p = FALSE) rinvgamma(n, shape, rate = 1, scale = 1/rate)

invgamma 5 Arguments x, q vector of quantiles. shape rate scale log, log.p lower.tail p n Details inverse gamma shape parameter inverse gamma rate parameter alternative to rate; scale = 1/rate logical; if TRUE, probabilities p are given as log(p). logical; if TRUE (default), probabilities are P[X <= x] otherwise, P[X > x]. vector of probabilities. number of observations. If length(n) > 1, the length is taken to be the number required. The inverse gamma distribution with parameters shape and rate has density f(x) = rate^shape/gamma(shape) x^(-1-shape) e^(-rate/x) it is the inverse of the standard gamma parameterzation in R. The functions (d/p/q/r)invgamma simply wrap those of the standard (d/p/q/r)gamma R implementation, so look at, say, dgamma for details. See Also dgamma; these functions just wrap the (d/p/q/r)gamma functions. Examples s <- seq(0, 5,.01) plot(s, dinvgamma(s, 7, 10), type = 'l') f <- function(x) dinvgamma(x, 7, 10) q <- 2 (p <- pinvgamma(q, 7, 10)) qinvgamma(p, 7, 10) # = q mean(rinvgamma(1e5, 7, 10) <= q)

Index dchisq, 2 dexp, 4 dgamma, 5 dinvchisq (invchisq), 2 dinvexp (invexp), 3 dinvgamma (invgamma), 4 invchisq, 2 invexp, 3 invgamma, 4 pinvchisq (invchisq), 2 pinvexp (invexp), 3 pinvgamma (invgamma), 4 qinvchisq (invchisq), 2 qinvexp (invexp), 3 qinvgamma (invgamma), 4 rinvchisq (invchisq), 2 rinvexp (invexp), 3 rinvgamma (invgamma), 4 6