precmat(spam)
precmat()所属R语言包:spam
IGMRF Precision Matrices
IGMRF精密矩阵
译者:生物统计家园网 机器人LoveR
描述----------Description----------
Fast ways to create sparse precision matrices for various IGMRF.
快速的方式,各种IGMRF以创建稀疏的精度矩阵。
用法----------Usage----------
precmat(n, season=12, m=n, A=NULL, ... , type="RW1")
precmat.RW1(n)
precmat.RW2(n)
precmat.season(n, season=12)
precmat.IGMRFreglat(n, m, anisotropy=1)
precmat.IGMRFirreglat(A, eps=.Spam$eps)
参数----------Arguments----------
参数:n
dimension of the field.
尺寸的字段。
参数:type
the type of the IGMRF.
类型的IGMRF。
参数:season
length of season.
长的季节。
参数:m
second dimension (in case of a regular lattice)
第二个维度(定期晶格的情况下)
参数:A
adjacency matrix (see below)
邻接矩阵(见下文)
参数:anisotropy
anisotropy factor, between 0 and 2.
各向异性因子,在0和2之间。
参数:eps
tolerance level.
公差等级。
参数:...
arguments passed to individual functions.
参数传递给单个功能。
Details
详细信息----------Details----------
precmat is a wrapper that calls the other functions according to the argument type. <br> Implements many of the precision matrices discussed in Chapter 3 of Rue and Held (2005). For example, precmat.RW1, precmat.RW2 and precmat.season are given in equations (3.22), (3.40) and (3.59); precmat.IGMRFreglat on page 107. <br> If adjacency matrix is a regular matrix, it is coerced to a spam object. Only the structure is used. Make sure, that the diagonal is empty.
precmat是一个包装,调用其他函数根据参数type。参考实现很多的精度矩阵第3章中讨论的Rue举行(2005年)。例如,precmat.RW1,precmat.RW2和precmat.season给出了方程(3.22),(3.40)和(3.59),“precmat.IGMRFreglat第107页上的。 <br>如果邻接矩阵是一个普通的矩阵,它被强制转换为一个spam对象。仅使用结构。确保,这的对角线为空。
值----------Value----------
A sparse precision matrix.
稀疏的精度矩阵。
(作者)----------Author(s)----------
Reinhard Furrer
参考文献----------References----------
参见----------See Also----------
rmvnorm.prec, adjacency.landkreis.
rmvnorm.prec,adjacency.landkreis。
实例----------Examples----------
n <- 10
Q <- precmat.RW2( n)
# rmvnorm.prec(1, Q=Q) # does not work, because the matrix is singular.[rmvnorm.prec(1,Q = Q)不工作,因为矩阵是奇异的。]
Q
转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。
注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|