## Rare Variant BRI example
## Load the data for Rare variant example
data(RareData)
## Run algorithm for 100 iterations for rare variant example.
## NOTE: Results from a more realistic run with 100K
## iterations can be found in data(RareBVS.out).
RareBVS.out <- sampleBVS(data=RareData,iter=100,rare=TRUE)
## Informative iBMU Example
##Load the data for the informative example
data(InformData)
## Run algorithm for 100 iterations for informative data example.
## This run is the basic Bayes model uncertainty algorithm with inform=FALSE
## NOTE: Results from a more realistic run with 100K
## iterations can be found in data(InformBVS.NI.out).
InformBVS.NI.out = sampleBVS(InformData$data,inform=FALSE,iter=100)
## Run algorithm for 100 iterations for informative data example.
## This run corresponds to the iBMU algorithm with inform=TRUE
## and dichotomous predictor-level covariates indicating the gene of each variant.
## NOTE: Results from a more realistic run with 100K
## iterations can be found in data(InformBVS.I.out).
InformBVS.I.out = sampleBVS(InformData$data,inform=TRUE,
cov=as.matrix(InformData$cov),iter=100)Run the code above in your browser using DataLab