Skip to content

Singular matrix

1 message · Liaw, Andy

#
Don't you have the dimension of x backward?  Try:
[,1]         [,2]         [,3]         [,4]         [,5]
[1,]  0.019918251 -0.006247646  0.006600209  0.003687249 -0.018670806
[2,] -0.006247646  0.018121025 -0.014815905 -0.005647350  0.003434065
[3,]  0.006600209 -0.014815905  0.023411617 -0.002250342 -0.003258960
[4,]  0.003687249 -0.005647350 -0.002250342  0.025168959 -0.020070844
[5,] -0.018670806  0.003434065 -0.003258960 -0.020070844  0.039593016

If you really have 5 cases and 10 variables, the covariance matrix will
have to be singular.

Andy