Description Usage Arguments Author(s) Examples
Run a BHLM model with custom number of latent variables according to specified number of outcome options. The model sets priors for each outcome, group mean (theta) and estimate variance.
Run following for model specification (Graphical notation):
plot(0:1,0:1,type="n",ann=FALSE,axes=FALSE)
rasterImage(bhlm_model_spec,0,0,1,1)
1 2 3 4 5 6 7  bhlm(dataframe, grouping_factor_cols, estimate_col, outcome_options_col,
outcome_options, outcome_priors, lambda_prior, theta_prior,
field_theta_precision = NULL, identifier_col = NULL,
bayes_method = "jags", jags_init = NULL, jags_chains = 3,
jags_iter = 2000, jags_burnin = floor(jags_iter/2), jags_thin = max(1,
floor(jags_chains * (jags_iter  jags_burnin)/1000)), jags_DIC = TRUE,
save_model = NULL)

dataframe 
A data frame with studies, two grouping factor cols (e.g. studies*outcomes), estimates, and optional ID column. 
grouping_factor_cols 
A data vector of two grouping factor columns of the data frame
(e.g. 
estimate_col 
Column of estimates in the data frame. 
outcome_options_col 
Column containing the different outcome names

outcome_options 
Chosen outcomes. You can choose a subset of outcomes. 
outcome_priors 
Priors for outcomes. Takes character vector or Define all outcome priors to one distribution set prior (throws Warning) as
Priors defined as character strings are checked with regex:
or as data vector
Define all outcome priors manually with
or as character vector of
Notice: priors set manually, are set in the same order as 
lambda_prior 
Prior for Lambda as 
theta_prior 
Prior for Theta as 
identifier_col 
ID column. Chosen column is added to the used data for easier overview. 
bayes_method 
Use JAGS or STAN (currently only JAGS is implemented). 
save_model 
Input FALSE to not save the model file, NULL to save as 'model_file.txt' in working directory, or filepath location with name to save the model file as .txt (Separated with '\' or '/'). 
field_theta 
Optional: Include a another hierarchical level in the form of a fieldwide mean distribution.
Use a string vector with the same distribution as 
jags 
Parameters for

Hugh Benjamin Zachariae
1  # INCOMING

Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.