Announcement

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

  • Weighting dataset

    I have a dataset from a survey with a weight variable.
    I already know how to weight the data on specific commands i.e: summ age [iweight = weightsvar]

    I would like to know if Stata can permanently weight the dataset (instead of having to add the [iweight = weightsvar] to every command i use).
    For example this is possible in SPSS where you can activate or deactivate weighting the dataset.


    Thanks!

  • #2
    yes, if you svyset the data and then use the "svy:" prefix before your commands; see
    Code:
    help svyset
    help svy_estimation

    Comment


    • #3
      Originally posted by Rich Goldstein View Post
      yes, if you svyset the data and then use the "svy:" prefix before your commands; see
      Code:
      help svyset
      help svy_estimation
      Thanks, this seems to work! (though it only supports some commands)

      Comment


      • #4
        what commands do you want to use that are, apparently, not supported in this way?

        Comment

        Working...
        X