create_table_two: create_table_two

Description Usage Arguments Value

View source: R/create_table_two.R

Description

create_table_two

Usage

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)

Arguments

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

Value

list with 4 values, the raw and summary differences in beta and terminal distance


apeterson91/STAPSimulations documentation built on May 11, 2020, 4:54 a.m.