Handling Missing Data in Stata

Поделиться
HTML-код
  • Опубликовано: 11 сен 2024
  • If there are missing observations in your data it can really get you into trouble if you're not careful. Some notes on how to handle it.

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

  • @bongumusakhoza3863
    @bongumusakhoza3863 6 лет назад +2

    4:19 'missing(varname)' function that checks if a value is missing from a variable

  • @maxkleinsorg3088
    @maxkleinsorg3088 3 года назад +1

    uff you just saved my ass. big thanks from Kiel

  • @md.nazimmahmud.7357
    @md.nazimmahmud.7357 Год назад +1

    What is missing data handle command?

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

      If you just want to ignore the missing values you don't need to do anything special. If you want to do multiple imputation or something, multiple imputation is the mi suite

  • @08magnemite
    @08magnemite Год назад

    Hello, What is the recommended method to treat missing values? should I just drop the whole observation, or is there another method ?

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

      I'd recommend taking a look through my book section on missing data. www.theeffectbook.net/ch-UndertheRug.html#why-it-had-to-go-i-dont-know-missing-data

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

    I am running a panel regression with data from a list of small countries on energy sector. the thing is some of these countries did not have any renewable energy for few years in the data period. it's not that data are missing, it is just that there were no renewable energy. is it ok for me to put 0 as data for those few years. this happens to two variables. my dependent variable (renewable energy production) and one independent variable (funding for renewable energy). is it ok for me to put 0 in those few years. as for funding in some years there were international funding, and in other years there were no funding.

    • @NickHuntingtonKlein
      @NickHuntingtonKlein  3 года назад +1

      Yep, if the true value is a 0, then putting in a 0 makes sense.

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

    how u regress after generated new variable? include all x y and new variable generated too?

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

    Please i need do file on this M TRY TO APPLYING THE SAME BUT CHOKED HALF WAY

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

      I'm afraid I don't still have the do files for these old videos, you'll have to go by what's on the screen

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

    how about dropping observations that are missing?

    • @NickHuntingtonKlein
      @NickHuntingtonKlein  4 года назад +1

      Most commands will do this automatically. Or you can do drop if missing(var)

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

      @@NickHuntingtonKlein Thanks for the quick reply. Yes, I noticed when doing the commands separately [:)~

  • @storxvi5454
    @storxvi5454 6 лет назад

    THANKS A LOT :) Greetings from France !

  • @partygreens1
    @partygreens1 5 лет назад

    can u share the do file for all your classes? watching videos consumes time

    • @NickHuntingtonKlein
      @NickHuntingtonKlein  5 лет назад

      I'm afraid I made these videos ages ago and don't have the do files any more.

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

    im always missing my data:(