Learn R Programming

surbayes (version 0.1.1)

fastKronEye_crossprod: Fast kronecker product of crossproduct matrix

Description

This is a c++ implementation of the fast kronecker product t(X)

Usage

fastKronEye_crossprod(XtX, Sigma, pvec, n, J)

Arguments

XtX

a matrix that is crossprod((X1, ..., XJ)) in R

Sigma

JxJ covariance matrix

pvec

J-dimensional vector giving number of observations for each endpoint

n

number of observations

J

number of endpoints

Value

matrix result of \(X' (\Sigma \otimes I_n) X\)