Learn R Programming

mimi (version 0.1.0)

covmat: covmat

Description

covmat

Usage

covmat(R = NULL, C = NULL, n, p)

Arguments

R

nxK1 matrix of row covariates

C

nxK2 matrix of column covariates

n

number of rows

p

number ofcolumns

Value

the joint product of R and C, a (np)x(K1+K1) matrix in order row1col1,row2col1,...,rowncol1, row1col2, row2col2,...,rowncolp

Examples

Run this code
# 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