Construct a robust and consistent daily Time Series from Google Trends data. Daily, weekly and monthly Data is downloaded and consistently aggregated, using the Chow-Lin methodology.

ts_gtrends_mwd(
  keyword = NA,
  category = "0",
  geo = "CH",
  from = "2006-01-01",
  to = Sys.Date()
)

Arguments

keyword

A character vector with the actual Google Trends query keywords. Defaults to NA which searches for the whole category. Contrary to gtrendsR::gtrends(), if different keywords are used, mulitple queries are sent to Google, and each series is individually normalized.

category

A character vector, listing the categories, defaults to "0". Passed to gtrendsR::gtrends()

geo

A character vector denoting geographic regions for the query, default is "CH". Passed to gtrendsR::gtrends()

from

A character string specifying the starting date for the obtained time series, defaults to 2006-01-01

to

A character string specifying the ending date for the obtained time series, defaults to current day

Details

See the working paper for details on the methodology.