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

View source: R/AttMOMO_estimation.R

AttMOMO_estimationR 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_estimation(
  country,
  StartWeek,
  EndWeek,
  groups,
  pooled = NULL,
  indicators,
  death_data,
  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

death_data

Name of deaths data file in memory.

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.