Google Causal Impact Case Study in R

Поделиться
HTML-код
  • Опубликовано: 26 ноя 2024

Комментарии •

  • @kofimawuli8940
    @kofimawuli8940 9 месяцев назад

    Great work on applying the causal impact tool to empirical data.

  • @judygu9276
    @judygu9276 Год назад

    Great work! Any reason to use adjusted price not returns ?

    • @DataHeroes
      @DataHeroes  6 месяцев назад

      You can use any. Really depends what you are trying to predict

  • @econrodrigoozon
    @econrodrigoozon 3 года назад

    For the "fomat error" u can solve this fixing the pre.period by including one day after the treatment date.
    Someting like this:
    start

    • @DataHeroes
      @DataHeroes  3 года назад

      Thanks, Rodrigo, for thr suggestion

  • @coloredmesurprised
    @coloredmesurprised 2 года назад

    Fantastic work, really beneficial. One question: are there any other data package like series that can readily be used as a source of time series data? For example, import, export, GDP, etc.?

    • @DataHeroes
      @DataHeroes  2 года назад

      Unfortunately, none that I am familiar with

  • @raiadscaggion9338
    @raiadscaggion9338 2 года назад

    Awesome! Keep up the good work, man! :)

  • @knowledgeheightsacademy2466
    @knowledgeheightsacademy2466 4 года назад

    I keep getting 'data is not numeric,. What could be the problem?

    • @knowledgeheightsacademy2466
      @knowledgeheightsacademy2466 3 года назад

      @@DataHeroes I added to my library "CausalImpact" and run the following;
      > #Read the data
      > B #Using a different model again
      > start="2009-3-1"
      > treatment="2014-12-1"
      > end="2020-9-1"
      > # define the pre and post periods
      > pre.period=as.Date(c(start, treatment))
      > post.period=as.Date(c(treatment, end))
      > #Declare variables as time series
      > rem #Declare variables as time series
      > rem rtc exr #bind the data
      > DataTC #Check correlations
      > correlations #Check correlations
      > correlations impact impact impact impact impact