View source: R/compare_block_diffs.R
compare_block_diffs | R Documentation |
Compare learning parameters between groups over different numbers of training blocks
compare_block_diffs(
all_res,
var_of_interest,
covariates,
model,
vb = TRUE,
fit_together = vb,
out_dir = "outputs/cmdstan/compare_blocks",
iter_warmup_glm = 2000,
iter_sampling_glm = 4000,
min_blocks = 1,
max_blocks = 6,
save_mod_out = FALSE,
...
)
all_res |
List output from |
var_of_interest , covariates |
Same as |
model , vb , out_dir |
Same as |
fit_together |
Whether or not to fit all participant data to the model
at the same time, or by group (if |
iter_warmup_glm , iter_sampling_glm |
Number of warm-up and sampling
iterations to fit Bayesian GLMs with (passed to |
min_blocks , max_blocks |
Minimum and maximum number of blocks to fit
models on. For example, if |
save_mod_out |
Save model summaries and raw data separately? |
... |
Other arguments to pass to |
A data frame with parameter values for each of the fits.
## Not run:
data(example_data)
dir.create("outputs/cmdstan/compare_blocks")
comp_blocks <- compare_block_diffs(
example_data,
var_of_interest = "distanced",
covariates = c("age", "sex", "digit_span"),
model = "2a"
)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.