首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >错误消息:协方差矩阵的LDL‘Bunch-Kaufman分解

错误消息:协方差矩阵的LDL‘Bunch-Kaufman分解
EN

Stack Overflow用户
提问于 2013-02-06 01:57:38
回答 1查看 123关注 0票数 0

我是R矩阵的新手。我尝试用R-function BunchKaufman(x,...) http://stat.ethz.ch/R-manual/R-devel/library/Matrix/html/BunchKaufman-methods.html将奇异协方差矩阵分解成低密度脂蛋白的形式

请帮我跳过第一垒,尾随“函数错误...”

代码语言:javascript
复制
A <- matrix( c( 0.184, 0.228, 0.252, 0.022, -0.022, 0.228, 1.053, 0.142, 0.106, -0.106,
+ 0.252, 0.142, 0.382, 0.015, -0.015, 0.022, 0.106, 0.015, 0.055, -0.055, 
+ -0.022, -0.106, -0.015, -0.055, 0.055), ncol=5, nrow=5)
BunchKaufman(A)
Error in function (classes, fdef, mtable)  : 
  unable to find an inherited method for function ‘BunchKaufman’ for signature ‘"matrix"’
EN

回答 1

Stack Overflow用户

发布于 2013-02-06 23:58:15

以下工作:

A <- forceSymmetric(A)

syA <- new("dsyMatrix",A,Dim = as.integer(c(nrow(A),nrow(A),uplo = "L“)

BunchKaufman(syA)

票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/14713856

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档