fit_seasonal: Fit yearly and bi-yearly sinusoids

Description Usage Arguments Value Examples

Description

Fit yearly and bi-yearly sinusoids

Usage

1
fit_seasonal(t_months, prop)

Arguments

t_months

a numeric vector indicating time (in months)

prop

a numeric vector indicating the proportion of cases in year reported during month

Value

a list containing seasonal coefficients and fitted values

Examples

1
2
t_months = 1:12
prop = c(0.1,0.1,0.2,0.2,0.3,0.3,0.3,0.2,0.3,0.2,0.2,0.1)

kcucchi/myUtils documentation built on May 28, 2019, 9:50 a.m.