get_date_from_test_periods: Link dates to GeoLift time periods.

View source: R/auxiliary.R

get_date_from_test_periodsR Documentation

Link dates to GeoLift time periods.

Description

[Stable]

Link dates to GeoLift time periods.

Usage

get_date_from_test_periods(
  GeoLift,
  treatment_end_date,
  post_treatment_periods = 0,
  frequency = "daily"
)

Arguments

GeoLift

GeoLift object.

treatment_end_date

Character that represents a date in year-month=day format.

post_treatment_periods

Number of post-treatment periods. Zero by default.

frequency

Character that represents periodicity of time stamps. Can be either weekly or daily. Defaults to daily.

Value

List that contains:

  • "date_vector": Vector of dates, going from first pre test time to end of test.

  • "treatment_start": start date of study.

  • "treatment_end": End date of study.


facebookincubator/GeoLift documentation built on May 31, 2024, 10:09 a.m.