Description Usage Arguments Value
View source: R/create_table_two.R
create_table_two
1 2 3 4 5 6 7 | create_table_two(num_sims = 5, num_subj = 100, num_dists = 30,
alpha = 23, theta = 0.5, shape = 5, delta = -2.2, beta = 0.75,
alpha_prior = rstap::normal(location = 25, scale = 4, autoscale = F),
beta_prior = rstap::normal(location = 0, scale = 3, autoscale = F),
theta_prior = rstap::log_normal(location = 0, scale = 1),
delta_prior = rstap::normal(location = 0, scale = 3, autoscale = F),
iter = 4000, warmup = 2000, chains = 1, cores = 1, file = NULL)
|
num_sims |
number of simulations to run |
num_subj |
number of subjects to simulate |
num_dists |
number of distances to simulate |
alpha |
intercept for generating outcome |
theta |
true spatial scale under which datasets |
delta |
simulated binary covariate regression effect |
beta |
SAP effect |
alpha_prior |
prior to be placed on intercept in model, must be an rstap:: namespace object |
beta_prior |
prior to be placed on SAP effect |
theta_prior |
prior to be placed on spatial scale |
delta_prior |
prior to be placed on simulated binary covariate effect |
iter |
number of iterations for which to run the stap_glm or stapdnd_glmer sampler |
warmup |
number of iterations to warmup the sampler |
chains |
number of independent MCMC chains to draw #' |
cores |
number of cores with which to run chains in parallel |
num_mesa_subj |
number of subjects to sample from MESA data for MESA analysis |
list with 4 values, the raw and summary differences in beta and terminal distance
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.