How to impute missing data using mice package in R programming

Поділитися
Вставка
  • Опубліковано 29 лис 2024

КОМЕНТАРІ • 30

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

    You saved me. I am using ozone data in my ozone research in the state of São Paulo (Brazil). Thanks!!!

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

      Thanks for these words. Mice package fails for some data, there Amelia or missforest can be used.

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

    This is Extremely useful and important. Thank you.

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

      Thanks for appreciation. Glad it helped.

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

    Thank you so much for your usual informative videos. I really appreciate that.

  • @Karim-kk1ol
    @Karim-kk1ol Рік тому +1

    Thank you very much it was very usefull

  • @laianamoura4730
    @laianamoura4730 5 місяців тому

    Thank you very much for teaching!

    • @DevResearch
      @DevResearch  5 місяців тому

      Glad it helped you. Watch my other videos also.

  • @shittuaoluniyi2535
    @shittuaoluniyi2535 2 місяці тому +1

    Hi Prof, can we use this for a replicated trial as well?

    • @DevResearch
      @DevResearch  2 місяці тому

      Yes. You can. It fits model as per data type to guess the most probable value in place of NA.

    • @shittuaoluniyi2535
      @shittuaoluniyi2535 2 місяці тому

      @DevResearch ok thanks sir

  • @sanketchavan1316
    @sanketchavan1316 24 дні тому

    hello sir, can i use this package to impute missing values in univariate time series. if not then suggest which would be the best

    • @DevResearch
      @DevResearch  23 дні тому

      mice, Amelia and missforest are for imputation of multivariate data. Firbimoutation of univariate time series imputeTS package can be used.

  • @nicotomomate
    @nicotomomate 5 місяців тому +1

    Thanks!

  • @Marie-wi9hl
    @Marie-wi9hl 6 місяців тому

    Thank you, but how can I then run an Anova with the imputed dataset? It gives me error messages repetitively. Thanks in advance

    • @DevResearch
      @DevResearch  6 місяців тому

      It's a three part video . Watch all those three. You will get the idea.

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

    Hello sir. How can I validate the mice model of my data imputed? How can I use cross validation k-fold in that case?

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

      There is no direct option in mice function for validation if imputation. Based on data type you can use statistical tests to compare your original data with imputation data. I use t test or anova to compare numeric data imputation,to ensure accuracy of imputation or chi square for nominal data.

  • @surajjha9870
    @surajjha9870 7 місяців тому

    Hello Sir, How do we know when to use which function? For example, I have PCE data with date and PCE column and have missing values in it? will mice function work here? Thank you.

    • @DevResearch
      @DevResearch  7 місяців тому

      Yes. Sometimes some algorithms fail to converge, we can use Amelia or missforest then. Sometimes some specifying the imputation method is sufficient.

    • @DevResearch
      @DevResearch  7 місяців тому

      It's a time series data. ImputeTS package has function to impute time series data.

  • @samiyaahmed3148
    @samiyaahmed3148 6 місяців тому

    I downloaded data from CMIP6 from 1970-2005 and further future windows from 2015-2099 for one variable (precipitation). The issue is the Annual data contains negative rainfall how to correct this data kindly guide there are no NA only negative values . Thanks

    • @DevResearch
      @DevResearch  6 місяців тому +1

      Don't know much about hydrology. If the negative values means no rainfall , we can make them zero using mutate or ifelse . If you want to treat them as NA values in mutate or ifelse , use NA.

  • @jeffersonmartinez8687
    @jeffersonmartinez8687 3 місяці тому

    Hello, can you do an example of imputation with panel data? Please.

    • @DevResearch
      @DevResearch  3 місяці тому

      Please provide the sample data. I will try on it.

    • @jeffersonmartinez8687
      @jeffersonmartinez8687 3 місяці тому +1

      @@DevResearch I just sent you the database to your gmail. Thank you very much. Best regards.

    • @DevResearch
      @DevResearch  3 місяці тому

      Your dataset has column names with spaces. Imputation packages do not allow such column names. I sent you mail with html report of code I used.

    • @jeffersonmartinez8687
      @jeffersonmartinez8687 3 місяці тому +1

      @@DevResearch I appreciate that you have spent some of your time to support me with this inconvenience. Best regards and good luck.