找回密码
 注册
查看: 295|回复: 0

R语言 spBayes包 covGivens()函数中文帮助文档(中英文对照)

[复制链接]
发表于 2012-9-30 14:22:52 | 显示全部楼层 |阅读模式
covGivens(spBayes)
covGivens()所属R语言包:spBayes

                                        Returns covariance matrix C given components of P and L in C=PLP'
                                         返回协方差矩阵C,P和L组成部分在C = PLP“

                                         译者:生物统计家园网 机器人LoveR

描述----------Description----------

Given components of P and L in C=PLP', covGivens returns C.
由于组件P和L中C=PLP',covGivens回报C。


用法----------Usage----------


covGivens(theta, lambda, p, strict=TRUE)



参数----------Arguments----------

参数:theta
a p(p-1)/2 vector of Givens angles that are restricted to lie in the interval (-pi/2,pi/2) for uniqueness and positive definiteness of the covariance matrix. These are arranged in column major order in P.  
AP(P-1)/ 2矢量的吉文斯被限制为说谎的时间间隔(-pi/2,pi/2)的独特性和协方差矩阵的正定性的角度。这些被安排在列主要顺序P.


参数:lambda
a vector of length p of positive eigenvalues which form the diagonal matrix L.
一个向量的长度为p的正的特征值,其中形成的对角线矩阵L。


参数:p
refers to the dimension of the desired pxp covariance matrix.   
是指所需的pxp协方差矩阵的维数。


参数:strict
checks that theta elements lie in the interval (-pi/2,pi/2) and the lambda elements are positive.  
检查,θ波元件在于在区间(-pi/2,pi/2)和lambda元素都是正的。


Details

详细信息----------Details----------

The spectral decomposition of a matrix C is given by PLP', where P is an orthogonal matrix of eigenvectors and L is a diagonal matrix of positive eigenvalues. In the case of distinct eigenvalues, P can be expressed as P = G_{12}, G_{13}, G_{23}, ..., G_{p-1,p} where G_{i,j} is a pxp matrix with cos(θ_{tl}) in the tth and lth diagonal elements, sin(θ_{tl}) in the tlth and -sin(θ_{tl}) in the ltth elements, zeros on the rest of the off-diagonal elements and 1's on the rest of the diagonal. The p(p-1)/2 angles are called Givens angles and are restricted to lie in the interval (-pi/2,pi/2) for uniqueness and positive definiteness of the resulting covariance matrix.
PLP',其中P是一个正交矩阵的特征向量和L是正的特征值的对角矩阵的矩阵C由下式给出的频谱分解。在不同特征值的情况下,P可以表示为P = G_{12}, G_{13}, G_{23}, ..., G_{p-1,p}G_{i,j}是pxp矩阵cos(θ_{tl})在第t和l个对角线元素, sin(θ_{tl})的tlth,和-sin(θ_{tl})在ltth元素的其余部分上的非对角(off-diagonal)的元素和1的对角线上的其余部分中的“0”。 P(P-1)/ 2的角度被称为吉文斯的角度和限制说谎的时间间隔(-pi/2,pi/2)的独特性和所产生的协方差矩阵的正定性。


值----------Value----------

A list with the following tags:
下面的标签列表:


参数:C
pxp covariance matrix.
pxp协方差矩阵。


参数:P
pxp P matrix.
pxpP矩阵。


参数:Lambda
diagonal elements of the pxp L matrix.  
pxpL矩阵的对角元素。


(作者)----------Author(s)----------



Andrew O. Finley <a href="mailto:finleya@msu.edu">finleya@msu.edu</a>, <br>
Sudipto Banerjee <a href="mailto:sudiptob@biostat.umn.edu">sudiptob@biostat.umn.edu</a>, <br>




参考文献----------References----------

models, J. Amer. Statist. Assoc. 94:1254-1263.

实例----------Examples----------



## Not run: [#不运行:]
########################################[#######################################]
##Syntetic covariance matrix IIIR_1 from[的#Syntetic协方差矩阵IIIR_1的从]
##Daniels, M.J. and R.E. Kass (1999)[#丹尼尔斯兆焦耳和R.E.的的卡斯(1999)]
##JASA 94(448):1254-1263.[#JASA 94(448):1254-1263。]
########################################[#######################################]
p <- 5
theta <- rep(pi/4, p*(p-1)/2)
lambda <- c(1, 0.75, 0.56, 0.06, 0.003)

cov <- covGivens(theta, lambda, p)$C
cov2cor(cov)

## End(Not run)[#(不执行)]

转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。


注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

手机版|小黑屋|生物统计家园 网站价格

GMT+8, 2025-6-17 02:14 , Processed in 0.029412 second(s), 16 queries .

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

快速回复 返回顶部 返回列表