dgConstraint: Transform MCMC coefficients to satisfy Draper-Gittoes linear...

Description Usage Arguments

View source: R/DG_Functions.R

Description

Transforms coefficients to satisfy the Draper-Gittoes constraint (dot product of the Z-scores and the count_vec is constrained to be 0). Written by Daniel Kirsner

Usage

1
dgConstraint(coef_mat, count_vec)

Arguments

coef_mat

<IXp> coefficient matrix, with I MCMCM iterations. The first column should be the overall intercept.

count_vec

<px1> vector of integers, total number of observations per institution or group.


dhelkey/dghrank documentation built on April 21, 2020, 9:11 a.m.