⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 invgamma.rd

📁 使用R语言的马尔科夫链蒙特卡洛模拟(MCMC)源代码程序。
💻 RD
字号:
\name{InvGamma}\alias{dinvgamma}\alias{rinvgamma}\alias{InvGamma}\title{The Inverse Gamma Distribution}\description{  Density function and random generation from the inverse gamma distribution.}\usage{rinvgamma(n, shape, scale = 1)dinvgamma(x, shape, scale = 1)}\arguments{  \item{x}{Scalar location to evaluate density.}  \item{n}{Number of draws from the distribution.}  \item{shape}{Scalar shape parameter.}  \item{scale}{Scalar scale parameter (default value one).}}\value{  \code{dinvgamma} evaluates the density at \code{x}.  \code{rinvgamma} takes  \code{n} draws from the inverse Gamma distribution.  The parameterization is  consistent with the Gamma Distribution in the stats package.}\details{An inverse gamma random variable with shape \eqn{a}{a} and scale\eqn{b}{b} has mean \eqn{\frac{b}{a-1}}{b/(a-1)} (assuming \eqn{a>1}{a>1}) andvariance \eqn{\frac{b^2}{(a-1)^2(a-2)}}{(b^2)/((a-1)^2 (a-2))} (assuming\eqn{a>2}{a>2}).}\examples{density <- dinvgamma(4.2, 1.1)draws <- rinvgamma(10, 3.2)}\keyword{distribution}\seealso{\code{\link[stats]{GammaDist}}}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -