W7: Using survey weights in R

Поділитися
Вставка
  • Опубліковано 17 січ 2020
  • In this video, I am going into some more depth regarding survey weights (what they are and why they are often used). Then I introduce two ways of using them in R, briefly introducing the survey and srvyr packages. Note that this is not a tutorial for these packages but jsut a very brief introduction.

КОМЕНТАРІ • 9

  • @MuctaruKabba
    @MuctaruKabba 4 роки тому +10

    I really hope you do more videos on survey weighting in R. For example, videos on how we carryout 'design' weighting and how we use post-stratification weighting with the R survey packages. The huge value of your presentation is that you addressed the 'why weight' question well enough for a new learner like me to be able to wrap his head around the rationale for weighting. There is still a lot for me to work on and understand, but after many introductory video and material on weighting, I finally do not feel lost after watching you excellent video. I have a very good idea of why and when we weight. I can now move on to how we do it as well as learning more on where. Thank you.

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

    Hey, thank you alot for the shared video and lab file, really helped me out alot!

  • @ommarathe5514
    @ommarathe5514 8 місяців тому

    Great video!

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

    Hello!
    Do you know how to calculate levene test for homogeneity of variance with weighted data ? I searched everywhere and can’t find anything :(

  • @sophiema4137
    @sophiema4137 4 роки тому +1

    Thank you for this video! I hope it is not too much to ask, but I have two follow up questions:
    1. I was wondering if it is still possible to determine the median with weighted data (since that depends on the number of observations)?
    2. How do you calculate the standard deviation of weighted data? Is that possible at all?
    Kind regards!

    • @tujaD6
      @tujaD6 4 роки тому +2

      Good questions, Sophie! You can calculate weighted medians, but not with the packages I shared here - have a look at the Wikipedia page for weighted medians for the method and at the weightedMedian function in the matrixStats package to get it done. The standard deviation is just the square root of the mean variance - so it's easy to calculate that with weights. With the srvyr package, you can use the survey_var function to get the variance and then calculate its square root.