Stata: Reshaping Data using World Bank Open Data Sets

Поділитися
Вставка
  • Опубліковано 9 січ 2025

КОМЕНТАРІ • 30

  • @davidzhang5306
    @davidzhang5306 4 місяці тому

    It is really of great help to my graduation thesis, finally getting to a start. Thanks a lot!

  • @eswatinimyhome6859
    @eswatinimyhome6859 Рік тому

    Can I just say I have been stuck on this and you just helped . honestly thank you.

  • @Nesu2905
    @Nesu2905 4 роки тому +3

    I swear this video helped me. Thank you. Nice and straightforward

  • @rachelmaya8757
    @rachelmaya8757 Рік тому

    you are an absolute legend, thank you so much for this!

  • @cassiewright5481
    @cassiewright5481 Рік тому

    Thank you very much for this insightful and extremely helpful video! Doing God's work truly!

  • @hasanieltsbangla
    @hasanieltsbangla Рік тому

    Sir, amazing ...gratitude

  • @ritubhatt3092
    @ritubhatt3092 Рік тому +1

    In my dataset, there's no data from 1960 to 1988 in the same world bank co2 dataset. How's that possible?

  • @NaokoToda-cf2ec
    @NaokoToda-cf2ec Рік тому

    This video helped me so much! Thank you.

  • @MuhammadAsif-ci8yy
    @MuhammadAsif-ci8yy 2 роки тому

    Good job sir. Thanks 👍

  • @USAmedu-wz5op
    @USAmedu-wz5op Рік тому

    Thanks for this. What if the date should be monthly? For instance, I am looking for a way to convert a j=4 to 29Jan1986.

  • @annablinova6208
    @annablinova6208 Рік тому

    Exactly what I needed to do! Thanks a lot!

  • @petraszepesi106
    @petraszepesi106 2 роки тому +1

    How would we go about this same issue if we had multiple variables of interest? (Hence our data would already be wide and long) Thank you for any advice!

    • @toddr.yarbroughph.d.478
      @toddr.yarbroughph.d.478  2 роки тому

      Hmmm, you may be able to use multiple stubs? I can try this later to see. Otherwise I may just extract into separate data sets. I’m sure there is a more efficient way, but when in doubt I just divide and conquer!

    • @lubin509
      @lubin509 2 роки тому +1

      hi Petra, were you able to figure this out? I am in a similar situation whith a lot of variables and your experience might save me a lot of time. Thanks.

    • @noahk5959
      @noahk5959 2 роки тому +2

      @@lubin509 Hi were you able to find a solution?

  • @romniyepez5206
    @romniyepez5206 2 роки тому

    Thank Todd, nice vid! How would I be able deal with quarters instead years? Thanks in advance...

    • @toddr.yarbroughph.d.478
      @toddr.yarbroughph.d.478  2 роки тому +1

      It really shouldn't be any different. Just treat each column (wide form) as a "time period." It doesn't matter if its annual or quarterly or daily even.

    • @scholarlyanalyst7700
      @scholarlyanalyst7700 Рік тому

      @@toddr.yarbroughph.d.478 Question. I have limited knowledge of computers. I can do quite a bit in Excel. I can do QuickBooks. But I really don't have much experience beyond that. How long would it take me to independently become proficient in Stata?

  • @mariagulzar1778
    @mariagulzar1778 3 роки тому

    how do you do the opposite? because I want to calculate averages for each year but my data looks like what you have at the end result.

    • @toddr.yarbroughph.d.478
      @toddr.yarbroughph.d.478  3 роки тому

      try:
      reshape wide var, i(panelvar) j(timevar)
      OR you can also just use a collapse command to get average for years. Be sure to save data set first though, as collapse changes it.
      collapse (mean) varname, by(timevar)

  • @georgepaily3276
    @georgepaily3276 3 роки тому

    could you share the next part of this video ? it helps a lot .. thanks a lot

  • @kevinreyesmessi10
    @kevinreyesmessi10 2 роки тому

    Thank you so much. Clutch af.

  • @madhumitachaudhary6270
    @madhumitachaudhary6270 2 роки тому

    Is there a way we can do this using python or excel power query?

    • @toddr.yarbroughph.d.478
      @toddr.yarbroughph.d.478  2 роки тому

      See link. In my few forays into Python I've found this very useful: www.danielmsullivan.com/pages/tutorial_stata_to_python.html

  • @bazejmakowski2613
    @bazejmakowski2613 2 роки тому +1

    Thank you

  • @monkynutss711
    @monkynutss711 10 місяців тому

    Thank you!

  • @vladimiri555
    @vladimiri555 Рік тому

    Great! Thanks a lot!

  • @neelamkhan7896
    @neelamkhan7896 2 роки тому

    I need bank loans data guide me plz