cmaw: Calendar Month Artifact Weight

Description Usage Arguments Details Value

View source: R/date_evaluations.R

Description

The purpose of this function is to provide a weight which can be used to adjust values that are aggregated at the monthly level so that the noise caused by unequal intervals (i.e varying number of days in each month) is muted.

Usage

1
cmaw(month_date)

Arguments

month_date

- A date that represents the month which a value is aggregated to

Details

Divide the equal interval month value (1/12) by the actual share of the month in the year that The month and year for this calculation are obtained by the provided date variable. This calculation accounts for leap (366 day) years when they occur.

This function is vectorized.

Value

A weighting value which can be used to smooth the noise caused by the Julian calendar


Mikuana/vitalstatistics documentation built on May 7, 2019, 4:57 p.m.