Description Usage Arguments Value Author(s)
View source: R/total.effect.estimation.R
EigenPrism calculate the total effect based on a paper called EigenPrism: Inference for High-Dimensional Signal-to-Noise Ratios. The source code of this function could be found at the author's website.
1 2 3 4 5 6 7 8 9 | EigenPrism(
y,
x,
invsqrtSig = NULL,
alpha = 0.05,
target = c("beta2", "r2")[1],
zero.ind = c(),
diagnostics = F
)
|
x: |
n by p design matrix; columns will automatically be centered and scaled to variance 1 |
y: |
response vector of length n (will automatically be centered) should not contain intercept column, since both y and x will be centered |
invsqrtSig: |
if columns of x not independent, p by p positive definite matrix which is the square-root of the inverse of Sig, where Sig is the *correlation* matrix of the x (default is identity) |
alpha: |
significance level for confidence interval (default = 0.05) |
target: |
target of estimation/inference
|
zero.ind: |
vector of which indices of the weight vector w to constrain to zero (default is none) |
diagnostics: |
boolean (default = T) for whether to generate diagnostic plots for the V.i, lambda.i, and w.i |
beta2
or r2
estimate: unbiased estimate of the target (for beta2 or r2)
CI: 100*(1-alpha)
Author: Lucas Janson (statweb.stanford.edu/~ljanson)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.