run_thresholding_method: Run thresholding method

View source: R/thresholding_algos.R

run_thresholding_methodR Documentation

Run thresholding method

Description

Runs the thresholding method on real data.

Usage

run_thresholding_method(
  phat,
  m,
  m_fam,
  m_offset,
  covariate_matrix,
  n_examples_per_param = 5,
  alpha = 0.95,
  exponentiate_coefs = TRUE
)

Arguments

phat

the binary vector of thresholded gRNA counts

m

mRNA counts

m_fam

family object describing mRNA counts

m_offset

offset for mRNA model

covariate_matrix

matrix of cell-specific covariates

n_examples_per_param

number of perturbed cells (per parameter) that must be present to attempt model fit

alpha

returns alpha-level CIs.

Details

Note: consider combining this function with run_thresholding_method_simulatr.

Value

data frame of fitted parameters and CIs.


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