Announcement

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

  • Using weights in stata

    Hi!

    I'm trying to perform a regression analysis in Stata where I need to apply different expansion factors to my dependent and independent variables. Specifically, I want to use the "weight" command but assign distinct expansion factors: one for the dependent variable and another for the independent variables.

    I understand that using "weights" applies the same expansion factor to all variables in the regression. How can I assign separate expansion factors—one for the dependent variable and a different one for the independent variables? In particular, I want to use the "fweight" command.

    Any guidance or syntax examples on how to achieve this in Stata would be greatly appreciated.

    Thank you!
    Agustin.
    Last edited by Agustin Barrientos; 12 Dec 2023, 14:09.

  • #2
    you don't say what kinds of weights you are talking about, but your use of "expansion factors" leads me to believe that these are frequency weights; if at least one is a frequency weight, then just expand the data and use the other in the standard way; see
    Code:
    h expand
    if, however, neither are frequency weights, please read the FAQ and follow its advice on how to ask questions that reduces the need of readers to guess

    Comment

    Working...
    X