Google Causal Impact Case Study in R

แชร์
ฝัง
  • เผยแพร่เมื่อ 13 ธ.ค. 2024

ความคิดเห็น • 12

  • @kofimawuli8940
    @kofimawuli8940 10 หลายเดือนก่อน

    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  7 หลายเดือนก่อน

      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

  • @raiadscaggion9338
    @raiadscaggion9338 2 ปีที่แล้ว

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

  • @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

  • @knowledgeheightsacademy2466
    @knowledgeheightsacademy2466 4 ปีที่แล้ว

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

    • @knowledgeheightsacademy2466
      @knowledgeheightsacademy2466 4 ปีที่แล้ว

      @@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