get_ncp: Compute ncp for BF null distribution

Description Usage Arguments Details References See Also Examples

View source: R/get_ncp.R

Description

Compute non central parameter of the Bayes factors distribution.

Usage

1
get_ncp(Y, Counfounder, WCs, sigma_b)

Arguments

Y

a vector of the variable of interest.

Counfounder

the counfounding 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.

WCs

the vector of a specific wavelet coefficient for each inidivual.

sigma_b

value of the prior used in the Wavelet screaming.

Details

Compute non central parameter of the Bayes factors distribution using its closed form which is provided in the paper of Quan Zhou and Yongtao Guan.

References

Quan Zhou and Yongtao Guan, On the Null Distribution of Bayes Factors in linear Regression, Journal of the American Statistical Association, 518, 2017.

See Also

get_lambda1

Examples

1
2
3
4
5
6
7
## Not run: 
Y <- rnorm(n=1000)
WCs <- rnorm(n=1000)
sigma <-0.2
get_ncp(Y=Y,WCs=WCs,sigma_b=sigma)

## End(Not run)

william-denault/ffw documentation built on Jan. 20, 2021, 8:28 p.m.