我是R矩阵的新手。我尝试用R-function BunchKaufman(x,...) http://stat.ethz.ch/R-manual/R-devel/library/Matrix/html/BunchKaufman-methods.html将奇异协方差矩阵分解成低密度脂蛋白的形式
请帮我跳过第一垒,尾随“函数错误...”
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"’发布于 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)
https://stackoverflow.com/questions/14713856
复制相似问题