AttMOMO_estimationCut: Run AttMOMO base and baseline adjusted models and return...

View source: R/AttMOMO_estimationCut.R

AttMOMO_estimationCutR Documentation

Run AttMOMO base and baseline adjusted models and return estimated means and variances.

Description

Run AttMOMO base and baseline adjusted models and return estimated means and variances.

Usage

AttMOMO_estimationCut(
  country,
  StartWeek,
  EndWeek,
  groups,
  pooled = NULL,
  indicators,
  indicatorCuts,
  death_data,
  population_data = NULL,
  ET_data,
  lags = 3,
  ptrend = 0.05,
  p26 = 0.05,
  p52 = 0.1
)

Arguments

country

Country name.

StartWeek

ISOweek format (YYYY-WXX)

EndWeek

ISOweek format (YYYY-WXX)

groups

list of group names

pooled

list of group names to be pooled (default = NULL) Must be part of groups.

indicators

list if indicator variables. One file for each must be available in memory: IndicatorName_data

indicatorCuts

list of cut-weeks for each indicator in indicators

death_data

Name of deaths data file in memory.

population_data

Name of population data file in memory. NULL if not available (default)

ET_data

Name of ET data file in memory.

lags

weeks of lagged effect (default = 3, max = 9)

ptrend

significance of trend to be included (default = 0.05)

p26

significance of half year-sine be included (default = 0.05)

p52

significance of year-sine be included (default = 0.10)

Value

data with weekly estimated means and variances


JensXII/AttMOMO documentation built on June 24, 2024, 11:05 p.m.