add_vars_from_stan_list_to_model_output: Adds variables from stan_list to to stan model summary (3-D,...

View source: R/stan_summaries.R

add_vars_from_stan_list_to_model_outputR Documentation

Adds variables from stan_list to to stan model summary (3-D, 2-D or 1-D)

Description

Useful for supplying simulated model with simulated parameters and experimental vars from task skeleton

Usage

add_vars_from_stan_list_to_model_output(
  exp_struct_list,
  cmdstan_summary,
  stan_list,
  var_names
)

Arguments

exp_struct_list

has to have 'ntrial' and 'nblock' field, specifying the number of trials per subject

cmdstan_summary

summary object

stan_list

stan list containing the variables to add

var_names

names of variables to add


SpTB/wztools documentation built on July 2, 2023, 11:50 a.m.