inst/doc/Excess_and_Predicted_Cases.R

## ----include = FALSE----------------------------------------------------------
knitr::opts_chunk$set(
  collapse = TRUE,
  comment = "#>"
)

## ----setup--------------------------------------------------------------------
library(Colossus)
library(data.table)

## -----------------------------------------------------------------------------
names <- c("x", "D")
term_n <- c(0, 1)
tform <- c("loglin", "lin")
modelform <- "M"

a_n <- c(0.1, 0.1)

## ----eval=FALSE---------------------------------------------------------------
# names <- c("x", "D")
# term_n <- c(0, 1)
# tform <- c("loglin", "lin")
# modelform <- "M"
# a_n <- c(0.1, 0.1)
# keep_constant <- rep(0, length(names))
# control <- list("Ncores" = 2, "verbose" = 2)
# e <- RunPoissonEventAssignment(df, pyr, event, names, Term_n, tform, keep_constant, a_n, modelform, control = control)
# 
# e0 <- e$predict
# e1 <- e$caused
# 
# BK <- e0[, 1]
# EX <- e0[, 2]
# Total <- e0[, 3]

Try the Colossus package in your browser

Any scripts or data that you put into this service are public.

Colossus documentation built on June 8, 2025, 1:10 p.m.