register_simulation_outcomes: Send the results of the simulation to the master node

Description Usage Arguments Value

View source: R/api.R

Description

Send the results of the simulation to the master node

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
register_simulation_outcomes(
  scenario_uid,
  iteration_uid,
  PD_subj,
  emiss_mu_bar,
  gamma_prob_bar,
  emiss_var_bar,
  emiss_varmu_bar,
  credible_interval,
  label_switch,
  state_order,
  uid = getOption("sleepsimR_uid")
)

Arguments

scenario_uid

string. unique id of the current simulation scenario

iteration_uid

string. unique id of the iteration of the current scenario

PD_subj

list. The length of this list is equal to the number of subjects. It contains the subject-specific parameter estimates of the state-dependent means for each emission distribution. For more information, see return objects from mHMM_cont.

emiss_mu_bar

list. The length of this list is equal to the number of dependent variables. Each element of the list is a numeric vector that is equal to the number of hidden states, the value of which is the Maximum A Posteriori (MAP) estimate of that parameter.

emiss_var_bar

list. The length of this list is equal to the number of dependent variables. Each element of the list is a numeric vector that is equal to the number of hidden states, the value of which is the Maximum A Posteriori (MAP) estimate of that parameter.

emiss_varmu_bar

list. The length of this list is equal to the number of dependent variables. Each element of the list is a numeric vector that is equal to the number of hidden states, the value of which is the Maximum A Posteriori (MAP) estimate of that parameter.

credible_interval

list. The length of this list is equal to the number of dependent variables plus one. The elements of the list are (in this order): (1) a list containing m x m elements with the lower and upper 95% CI of the between-subject TPM intercepts (gamma_int_bar), (2) n_dep lists containing m elements with the lower and upper 95% CI of the between-subject emission distributions.

label_switch

Numeric vector of length m x n_dep.

state_order

List with n_dep numeric vectors containing integers indicating the ordering of the state means (as per the start values) after handing it off to run_mHMM. To detect label switching, the order of hyperprior means and start values are ranked from low to high. However, this is annoying when comparing estimated means to the ground-truth values (because they have not been ordered).

uid

unique id of this container

gamma_int_bar

numeric vector. m x m values where m is the number of hidden states.

Value

if successful, a message telling the container to shut down.


JasperHG90/sleepsimRapiClient documentation built on May 20, 2020, 1:29 p.m.