FitInlaAll | R Documentation |
This is a wrapper function that facilitates multiple calls to INLA using parallel processing. It currently supports the following
univariate likelihoods: Poisson, negative binomial, zero-inflated negative binomial, Gaussian. PLEASE NOTE THAT FitAllShrink
IS USUALLY
MORE CONVENIENT WHEN SHRINKAGE PRIORS ARE USED.
FitInlaAll(forms, dat, fams = "zinb", logdisp = c(0, 0.01), precerr = c(1,10^(-5)), curvedispfun = NULL, logitp0 = c(0, 0.01), ncpus = 2, effoutput = TRUE, keepmargrand = FALSE, keepmarghyper = TRUE, setthreads1 = TRUE, showupdate = FALSE, silentINLA = 2L, updateby = 5000, ndigits = 5, addpackage = NULL, safemode = TRUE, cf=NULL, designlist=NULL, ...)
forms |
Formula, or list of formulas the length of which equals the number of data rows. See |
dat |
Matrix, data frame or list containing the data. Rows are features, columns are samples. For lists: each component represents a feature. |
fams |
Character string. Either equal to |
logdisp |
Numeric vector of length 2. Mean and precision of the Gaussian prior of log-size. Only relevant when fams = "nb" or fams = "zinb". |
precerr |
Numeric vector of length 2. Shape and rate of the Gamma-prior for precision of Gaussian random variables. |
curvedispfun |
A smoothing function that results from |
logitp0 |
Numeric vector of length 2. Mean and precision of the Gaussian prior of logit-p0 (zero-mass). Only relevant when fams = "zip" or fams = "zinb". |
ncpus |
Integer. The number of cpus to use for parallel computations. |
effoutput |
Boolean. If FALSE, all INLA output will be saved. If TRUE, some fields will be deleted. |
keepmargrand |
Boolean. Do you wish to save the marginals of the random effect regression parameters (beta's)? |
keepmarghyper |
Boolean. Do you wish to save the marginals of the hyper-parameters? |
setthreads1 |
Boolean. If TRUE, sequential computation is forced within each call to |
showupdate |
Boolean. Do you wish to see updates on progression of the computation? TRUE may slow down the computations due to less efficient parallel computation. |
silentINLA |
How to silence the output of |
updateby |
Integer, only relevant when showupdate=TRUE. Show an update for each |
ndigits |
Integer. Numerical precision in digits for the output. |
addpackage |
Character string. Additional package that you wish to export to slave nodes when parallel computing. |
safemode |
Boolean. Only relevant for |
cf |
List. |
designlist |
List. Components are data frames containting the variables in |
... |
Further arguments passed on to |
See FitAllShrink
res |
A list of length |
Extensions to the supported likelihoods (including multivariate ones) may be released in the feature
Mark A. van de Wiel
Rue H, Martino S and Chopin N (2009). Approximate Bayesian inference for latent Gaussian models by using integrated nested Laplace approximations (with discussion). J. R. Statist. Soc. B, 71, 319-392. www.r-inla.org
Van de Wiel MA, Leday GGR, Pardo L, Rue H, Van der Vaart AW, Van Wieringen WN (2012). Bayesian analysis of RNA sequencing data by estimating multiple shrinkage priors. Biostatistics.
FitAllShrink
(which is usually more convenient) and www.r-inla.org
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.