Description Usage Arguments Value Examples
Takes a valid k by k covariance matrix, augments it into a valid k+1 by k+1 covariance matrix, and returns the vector of regression coefficients and R-squared from the implicit linear regression. Primarily for internal use by DOPE. Currently implimented in both R and C++. The C++ version is faster while the R version is easier for the expected user base to read and modify as needed
1 2 |
vcvm |
A valid k by k covariance matrix. Assumes that the outcome variable is defined by the first row and column. |
buff |
numeric. A buffer to avoid numeric positive non-definiteness. |
A valid k + 1 length vector of regression coefficients (k-1 regressors, 1 control function, 1 R-squared).
1 2 3 | set.seed(1234)
corm <- RandomCormCPP(5)
simfuncpp(corm)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.