toDG: Convert MCMC Coefficients to Z-Scores Following...

Description Usage Arguments

Description

toDG reparamatrizes a matrix of MCMC coefficients into Draper-Gittoes Z-Scores with a linear transformation. The dot product of the Z-scores and the count_vec is constrained to be 0.

Usage

1
toDG(coef_mat, count_vec, baseline = FALSE)

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.

baseline

Logical; If TRUE, the first coeffient is constrained to be 0, and the D-G constraint is not satisfied.


dhelkey/dgrank documentation built on May 12, 2019, 5:24 p.m.