Description Usage Arguments Value References See Also Examples
Perform HMC using a previously compiled Stan model. This is specifically useful in cases when a previous fit failed to converged (i.e., Rhat > 1.1 for a portion of parameter estimates), thus requiring more iterations.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 |
object |
(required) Ouput of |
... |
Additional arguments for methods. |
init_type |
Type of initial parameters, either the original set that was
passed to |
inits |
List of values for parameter initialization. Overrides init_type. |
iters |
Number of iterations for for fitting. Defaults to 300 and 100 for HMC and ML, respectively. |
warmup |
For HMC, proportion of iterations devoted to warmup. Defaults to iters/2. |
chains |
For HMC, number of parallel chains. Defaults to 1. |
cores |
For HMC, number of cores to parallelize chains. Defaults to 1. |
seed |
Seed for the random number generator to reproduce previous results. |
return_summary |
Logical flag to return results summary. Defaults to TRUE. |
verbose |
Logical flag to print progress information. Defaults to FALSE. |
An object of class effects containing
List containing the parameters, fit, and summary.
Dataframe containing the formatted predicted gene information
from predict.topics
.
Stan Development Team. 2016. RStan: the R interface to Stan. http://mc-stan.org
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 | formula <- ~DIAGNOSIS
refs <- 'Not IBD'
dat <- prepare_data(otu_table=GEVERS$OTU,rows_are_taxa=FALSE,tax_table=GEVERS$TAX,
metadata=GEVERS$META,formula=formula,refs=refs,
cn_normalize=TRUE,drop=TRUE)
## Not run:
topics <- find_topics(dat,K=15)
functions <- predict(topics,reference_path='/references/ko_13_5_precalculated.tab.gz')
function_effects_init <- est(functions,level=3,iters=150,
prior=c('laplace','t','laplace'))
function_effects <- resume(function_effects_init,init_type='last',
iters=300,chains=4)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.