generate_scenarios: Generate parameter settings for each simulation iteration

Description Usage Arguments Details Value

View source: R/generate_scenarios.R

Description

Generate parameter settings for each simulation iteration

Usage

1
generate_scenarios(seed = 3547912)

Arguments

seed

random seed to use for generating parameter settings for each iteration. Defaults to 3547912, which is the seed I use for my thesis.

Details

In my simulation study, I test 250 iterations for each of 144 different scenarios. Hence, this function returns a data frame with 36.000 rows - one for each iteration - that contains specific information used to generate and model the data

Value

data frame with 36.000 rows and 11 columns

n

int. number of subjects

n_t

int. number of observed data points for each subject

zeta

float. between-subject variance for the means of the emission distributions

Q

float. between-subject variance for the intercepts of the transition-probability matrix

scenario_id

string .unique id of the simulation scenario

rank

int. iteration number of the simulation scenario

iteration_id

string. unique id of the iteration

dsim_seed

int. random seed used to generate the data

model_seed

int. random seed used to run the mHMM

start_gamma

json. initial values for the between-subject transition probability matrix

start_emiss

json. intiial values for each of the 3 emission distributions


JasperHG90/sleepsimR documentation built on May 18, 2020, 8:49 a.m.