powered by
covmat
covmat(R = NULL, C = NULL, n, p)
nxK1 matrix of row covariates
nxK2 matrix of column covariates
number of rows
number ofcolumns
the joint product of R and C, a (np)x(K1+K1) matrix in order row1col1,row2col1,...,rowncol1, row1col2, row2col2,...,rowncolp
# NOT RUN { R <- matrix(rnorm(10), 5) C <- matrix(rnorm(9), 3) covs <- covmat(R,C,5,3) # }
Run the code above in your browser using DataLab