Dear R-users,
would it be a better way to construct the matrix below without using any
for-loop or model.matrix? preferably with some matrix algebra?
Thanks in advance,
Carlo Giovanni Camarda
## dimensions
m - 3
n - 4
mn - m*n
k - m+n-1
## with a for-loop
X - matrix(0, mn, k)
for(i in 1:n){
Message-
From: r-help-boun...@r-project.org [mailto:r-help-boun...@r-project.org] On
Behalf
Of Camarda, Carlo Giovanni
Sent: Friday, October 26, 2012 8:13 AM
To: r-h...@stat.math.ethz.ch
Subject: [R] matrix algebra for constructing a special matrix?
Dear R-users,
would it be a better way
2 matches
Mail list logo