OpenBUGS中的常用分布与函数

上传人:抢*** 文档编号:63757423 上传时间:2022-03-20 格式:DOC 页数:9 大小:148.50KB
收藏 版权申诉 举报 下载
OpenBUGS中的常用分布与函数_第1页
第1页 / 共9页
OpenBUGS中的常用分布与函数_第2页
第2页 / 共9页
OpenBUGS中的常用分布与函数_第3页
第3页 / 共9页
资源描述:

《OpenBUGS中的常用分布与函数》由会员分享,可在线阅读,更多相关《OpenBUGS中的常用分布与函数(9页珍藏版)》请在装配图网上搜索。

1、Appendix I DistributionsContents topDiscrete Univariate Bernoulli Binomial Categorical Negative Binomial Poisson Non-central HypergeometricContinuous Univariate Beta Chi-squared Double Exponential Exponential Flat Gamma Generalized Extreme Value Generalized F Generalized Gamma Generalized Pareto Gen

2、eric LogLikelihood Distribution Log-normal Logistic Normal Pareto Student-t Uniform WeibullDiscrete Multivariate MultinomialContinuous Multivariate Dirichlet Multivariate Normal Multivariate Student-t WishartDiscrete Univariatetoptop appendix iBernoullir dbern(p) Binomialr dbin(p, n) Categoricalr dc

3、at(p) Negative Binomialx dnegbin(p, r) Poissonr dpois(lambda) Non-central Hypergeometricx dhyper(n, m, N, psi)Continuous Univariatetoptop appendix iBetap dbeta(a, b) Chi-squaredx dchisqr(k) Double Exponentialx ddexp(mu, tau) Exponentialx dexp(lambda) Flatx dflat()constant value for all x; not a prop

4、er distributionGammax dgamma(r, mu) Generalized Extreme Value x dgev(mu,sigma,eta) Generalized Fx df(n,m,mu,tau)Reduces to the standard F for mu=0, tau=1.Generalized Gammax dggamma(r, mu, beta) Generalized Paretox dgpar(mu,sigma,eta) GenericLogLikelihood distributionx dloglik(lambda) exp(lambda); NB

5、 does not depend on x. See Generic sampling distributions.Log-normalx dlnorm(mu, tau) Logisticx dlogis(mu, tau) Normalx dnorm(mu, tau) Paretox dpar(alpha, c) Student-tx dt(mu, tau, k) Uniformx dunif(a, b) Weibullx dweib(v, lambda) Discrete Multivariatetoptop appendix iMultinomialx dmulti(p, N) Conti

6、nuous Multivariatetoptop appendix iDirichletp ddirich(alpha) May also be speltddirchas in WinBUGS.Multivariate Normalx dmnorm(mu, T,) Multivariate Student-tx dmt(mu, T, k) Wishartx, dwish(R, k) Appendix II Functions and FunctionalsFunction arguments represented by e can be expressions, those by s mu

7、st be scalar-valued nodes in the graph and those represented by v must be vector-valued nodes in a graph. Some function arguments must be stochastic nodes. Functionals are described using a similar notation to functions, the special notation F(x) is used to describe the function on which the functio

8、nal acts. See example Functionals for details. Systems of ordinary differential equations and their solution can be described in the BUGS language by using the special D(x1:n, t) notation. See example ode for details. Scalar functions top abs(e) absolute value of e, |e| arccos(e) inverse cosine of e

9、 arccosh(e) inverse hyperbolic cosine of e arcsin(e) inverse sine of e arcsinh(e) inverse hyperbolic sine of e arctan(e) inverse tangent of e arctanh(e) inverse hyperbolic tangent of e cloglog(e) complementary log log of e, ln(-ln(1 - e) cos(e) cosine of e cosh(e) hyperbolic cosine of e cumulative(s

10、1, s2) tail area of distribution of s1 up to the value of s2, s1 must be stochastic, s1 and s2 can be the same ? cut(e) cuts edges in the graph - see Use of the cut functiondensity(s1, s2) density of distribution of s1 at value of s2, s1 must be a stochastic node supplied as data, s1 and s2 can be t

11、he same.deviance(s1, s2) deviance of distribution of s1 at value of s2, s1 must be a stochastic node supplied as data, s1 and s2 can be the same. equals(e1, e2) 1 if value of e1 equals value of e2; 0 otherwise exp(e) exp(e) gammap(s1, s2) partial (incomplete) gamma function, value of standard gamma

12、density with parameter s1 integrated up to s2 ilogit(e) exp(e)/ (1 + exp(e) icloglog(e) 1 - exp( - exp(e)integral(F(s), s1, s2, s3) definite integral of function F(s) between s = s1 and s = s2 to accuracy s3 log(e) natural logarithm of e logfact(e) ln(e!) loggam(e) logarithm of gamma function of e l

13、ogit(e) ln(e/ (1 - e) max(e1, e2) e1 if e1 e2; e2 otherwise min(e1, e2) e1 if e1 = 0; 0 otherwisetan(e) tangent of e tanh(e) hyperbolic tangent of e trunc(e) greatest integer less than or equal to eVector functions top inprod(v1, v2)inner product of v1 and v2,Siv1iv2i interp.lin(e, v1, v2) v2p + (v2

14、p+1 - v2p) * (e - v1p) / (v1p+1 - v1p) where the elements of v1 are in ascending order and p is such that v1p e v1p+1.Given function values in the vector v2 evaluated at the points in v1, this estimates the function value at a new point e by simple linear interpolation using the closest bounding pai

15、r of points. For example, given the population in 1991,2001 and 2011, we might want to estimate the population in 2004. inverse(v) inverse of symmetric positive-definite matrix v logdet(v) log of determinant of v for symmetric positive-definite v mean(v) Sivi / nn = dim(v) eigen.vals(v) eigenvalues

16、of matrix vode(v1, v2, D(v3, s1), s2, s3)solution of system of ordinary differential equations at grid of points v2 given initial values v1 at time s2 solved to accuracy s3. v3 is a vector of components of the system of ode and s1 is the time variable. See the PDF files in the Diff/Docudirectory of

17、the OpenBUGS installation for further details. prod(v) Pivi p.valueM(v)v must be a multivariate stochastic node, returns a vector of ones and zeros depending on if a sample from the prior is less than value of the corresponding component of v rank(v, s) number of components of vless than or equal to s ranked(v, s) the sthsmallest component of v replicate.postM(v) replicate from multivariate distribution of v, v must be stochastic and multivariate sd(v) standard deviation of components of v (n - 1 in denominator)sort(v)vector v sorted in ascending order sum(v) Sivi

展开阅读全文
温馨提示:
1: 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
2: 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
3.本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
5. 装配图网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
关于我们 - 网站声明 - 网站地图 - 资源地图 - 友情链接 - 网站客服 - 联系我们

copyright@ 2023-2025  zhuangpeitu.com 装配图网版权所有   联系电话:18123376007

备案号:ICP2024067431-1 川公网安备51140202000466号


本站为文档C2C交易模式,即用户上传的文档直接被用户下载,本站只是中间服务平台,本站所有文档下载所得的收益归上传人(含作者)所有。装配图网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对上载内容本身不做任何修改或编辑。若文档所含内容侵犯了您的版权或隐私,请立即通知装配图网,我们立即给予删除!