I made 2 matrices given as
#matrix 1 X<-matrix(rnorm(100),nrow=47,ncol=1,byrow =TRUE) X<-cbind(X,rnorm(100)) X<-cbind(X,1) # matrix 2 transpose of matrix 1 X_transpose<-t(X)
When I take their product
A<-X*Xt #Error pops up Error in X * Xt : non-conformable arrays #OR A<-crossprod(X,Xt) #error pops up Error in base::crossprod(x, y) : non-conformable arguments #Even dimensions of matrices are:- dim(Xt)  3 47 dim(X)  47 3
Why matrices are not multiplying even when their order satisfies the matrices product condition
(m X n) * (n X p) resulting matrix will have order (m X p)
Thanking you for the help..