Description Usage Arguments Details References See Also Examples
Compute the lambda parameter of the Bayes factors null distribution. Using the standard SVD R routine.
1 | get_lambda1(Y, confounder, sigma_b)
|
Y |
a vector of the variable of interest. |
confounder |
the confounding matrix with same a number of line equal to the length of Y. The intercept should not be included, if missing will generate a intercept matrix. |
sigma_b |
value of the prior used in the Wavelet screaming. |
Compute the lambda parameter of the Bayes factors distribution using its closed form which is provided in the paper of Quan Zhou and Yongtao Guan.
Quan Zhou and Yongtao Guan, On the Null Distribution of Bayes Factors in linear Regression, Journal of the American Statistical Association, 518, 2017.
1 2 3 4 5 6 | ## Not run:
Y <- rnorm(n=1000)
sigma <-0.2
get_lambda1(Y=Y,sigma_b=sigma)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.