Sir I am new user of R. I am facing problems in solving matrices.
for example>a<-array(c(3,4,1),dim=c(3,1))
>b<-a%o%a
>b
, , 1, 1
[,1]
[1,] 9
[2,] 12
[3,] 3
, , 2, 1
[,1]
[1,] 12
[2,] 16
[3,] 4
, , 3, 1
[,1]
[1,] 3
[2,] 4
[3,] 1>solve(b)
Error in solve.default(b) : only square matrices can be
inverted>solve(b,a)
Error in solve.default(b, a) : 'b' must be compatible with 'a'
Sir I request you to help me in this regard.
AMINA SHAHZAD
Department of Statistics
GC University Lahore, Pakistan.
Email:
amnakhan493@gmail.com
amna_989@hotmail.com
amna_989@yahoo.com
[[alternative HTML version deleted]]