AttMOMO: Run AttMOMO base and baseline adjusted models. Read input...

View source: R/AttMOMO.R

AttMOMOR Documentation

Run AttMOMO base and baseline adjusted models. Read input data, create output directories and return csv-file with estimates. Demanded input files must be available in wdir/data

Description

Run AttMOMO base and baseline adjusted models. Read input data, create output directories and return csv-file with estimates. Demanded input files must be available in wdir/data

Usage

AttMOMO(
  country,
  wdir,
  StartWeek,
  EndWeek,
  groups,
  pooled = NULL,
  indicators,
  lags = 2,
  ptrend = 0.05,
  p26 = 0.05,
  p52 = 0.1,
  Rdata = FALSE
)

Arguments

country

Country name.

wdir

Working directory.

StartWeek

ISOweek format

EndWeek

ISOweek format

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: IndicatorName_data.txt

lags

weeks of lagged effect (default = 2, 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)

Rdata

Return data to R (TRUE/FALSE - default FALSE).

Value

Write a ;-separated file AttData_indicators.txt in output directory/output.


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