sur_sample_cov_helper_cpp: Helper function to sample covariance

Description Usage Arguments

View source: R/RcppExports.R

Description

This function is called by sur_sample_cov_cpp. It samples the covariance matrix of a SUR

Usage

1
sur_sample_cov_helper_cpp(Y, Xlist, n, J, pj, sigma11, r1)

Arguments

Y

A matrix, each column a vector of responses

Xlist

A list, each element a design matrix

n

Integer giving number of observations

J

Integer giving number of endpoints

pj

A vector giving number of covariates per endpoint

sigma11

A scalar giving a draw for the (1,1) component of the covariance matrix

r1

A vector of residuals for the first endpoint's regression


surbayes documentation built on Aug. 26, 2020, 5:16 p.m.