obtain_valid_ids: Obtain valid IDs

View source: R/plotting_functs.R

obtain_valid_idsR Documentation

Obtain valid IDs

Description

Obtains valid IDs given the output of a simulatr experiment.

Usage

obtain_valid_ids(
  sim_res,
  spread_thresh = 0.1,
  approx_0_thresh = 50,
  approx_1_thresh = 50,
  g_pert_lower = -0.3,
  g_pert_upper = Inf,
  m_pert_lower = -Inf,
  m_pert_upper = 0.3,
  pi_lower = 0,
  pi_upper = 0.5
)

Arguments

sim_res

sim_res object

spread_thresh

spread threshold

approx_0_thresh

number cells approximately 0 threshold

approx_1_thresh

number cells approximately 1 threshold

g_pert_lower

minimum value for g_pert

g_pert_upper

maximum value for g_pert

m_pert_lower

minimum value for m_pert

m_pert_upper

maximum value for m_pert

pi_lower

minimum value for pi

pi_upper

maximum value for pi

Value

a list of length two; (i) a data frame giving the classification of each EM run, and (ii) a character vector of valid IDs for both EM and thresholding


timothy-barry/glmeiv documentation built on Jan. 30, 2024, 3:46 p.m.