Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Using weights with -estpost-

    Hello,

    I want to summarise survey responses: % of people who said yes/no to a particular question but weight each observation by another variable in the dataset. I have gone through help for estpost here: http://fmwww.bc.edu/RePEc/bocode/e/estpost.html

    Here is my attempt but I am not sure this is correct. Can someone help me understand exactly what -iweights- is doing here?

    Code:
    estpost tab var1 [iweight = weight_var], nototal 
    matrix mat = e(pct)
    Many thanks.

Working...
X