Skip to content

[R-meta] Non-positive definite variance-covariance matrix

1 message · James Pustejovsky

#
Erik,

Please keep the listserv cc'd in your replies.

How is the example that you sent formatted? If I read it in as a matrix,
then it does not appear to be a feasible covariance matrix because the
off-diagonal entries are all larger than the diagonals. Example below.

James

V <- matrix(c(.00825680, .00994727,
              .00959348, .01321687,
              .01290479, .01133872,
              .00994727, .00825568,
              .00937481, .01966662,
              .01270540, .01118369,
              .00959348, .00937481,
              .00824400, .01269867,
              .01964920, .01392237,
              .01321687, .01966662,
              .01269867, .00826429,
              .00938956, .03499702,
              .01290479, .01270540,
              .01964920, .00938956,
              .00826134, .01393701,
              .01133872, .01118369,
              .01392237, .03499702,
              .01393701, .00818451), 6, 6)

cov2cor(V)


On Sat, Aug 24, 2019 at 3:26 PM E. van der Meulen <E.vdrMeulen_1 at uvt.nl>
wrote: