Skip to contents

RunPoissonEventAssignment_bound uses user provided data, the results of a poisson regression, and options to calculate background and excess events

Usage

RunPoissonEventAssignment_bound(
  df,
  pyr0 = "pyr",
  event0 = "event",
  alternative_model = list(),
  keep_constant = c(0),
  modelform = "M",
  check_num = 1,
  z = 2,
  control = list(),
  strat_col = "null",
  model_control = list()
)

Arguments

df

a data.table containing the columns of interest

pyr0

column used for person-years per row

event0

column used for event status

alternative_model

the new model of interest in list form, output from a Poisson regression

keep_constant

binary values to denote which parameters to change

modelform

string specifying the model type: M, ME, A, PA, PAE, GMIX, GMIX-R, GMIX-E

check_num

the parameter number to check at the bounds of, indexed from 1 using the order returned by Colossus

z

Z score to use for confidence interval

control

list of parameters controlling the convergence, see the Control_Options vignette for details

strat_col

column to stratify by if needed

model_control

controls which alternative model options are used, see the Control_Options vignette for further details

Value

returns a list of the final results