Description Usage Arguments Value
View source: R/fusion_standard_BLR.R
Parallel Monte Carlo Fusion for Bayesian Logistic Regression model
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 | par_fusion_BLR(
N,
dim,
y_split,
X_split,
prior_means,
prior_variances,
time,
m,
C,
power,
precondition = FALSE,
samples_to_fuse,
seed = NULL,
level = 1,
node = 1,
n_cores = parallel::detectCores()
)
|
N |
number of samples |
dim |
dimension of the predictors (= p+1) |
y_split |
list of length m, where y_split[[c]] is the y responses for sub-posterior c |
X_split |
list of length m, where X_split[[c]] is the design matrix for sub-posterior c |
prior_means |
prior for means of predictors |
prior_variances |
prior for variances of predictors |
time |
time T for fusion algorithm |
m |
number of sub-posteriors to combine |
C |
overall number of sub-posteriors |
power |
exponent of target distribution |
precondition |
boolean value determining whether or not a preconditioning matrix is to be used |
samples_to_fuse |
list of length m, where samples_to_fuse[c] contains the samples for the c-th sub-posterior |
seed |
seed number - default is NULL, meaning there is no seed |
level |
indicates which level this is for the hierarchy (default 1) |
node |
indicates which node this is for the hierarchy (default 1) |
n_cores |
number of cores to use |
A list with components:
samples from fusion
combined y responses after fusion
combined design matrix after fusion
rho acceptance rate
Q acceptance rate
overall acceptance rate
time taken for fusion
pre-conditioning matricies that were used
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.