Hi everyone,
I want to run a regression using weights in stata. I already know which command to use : reg y v1 v2 v3 [pweight= weights]. But I would like to find out how stata exactly works with the weights and how stata weights the individual observations.
In the stata-syntax-file I have read the attached concept.
I tried to do the regression manually in stata by first weight all variables of observation i with sqrt(wi) and then perform a multiple linear regression. However, I don't get the same results as when I do a regression by using the option [pweight = weights].
Does anyone know why the calculation is false and how stata considers the weights in the observations?
Thank you for your help!
Related Posts with Using weights in regression
Pooled OLS and robust standard errorsDear Stata users, I don't have a lot of experience using the software and I'm currently working on …
Please help: How to create all possible combinations of several variables?Hello, Could you please help me with the below? I could not find an easier way to do this so far. I…
How do I replace the contents of one variable with that of another?In essence I want to tell STATA that when variable F11 = "Ya" replace it with the value in variable …
Writing a macro variable into a csv fileI specify here that i'm truly a neophyte in this language and i'm kind of struggling with easy stuff…
cdeco command in Stata 16Hello Everyone. I am trying to use cdeco command to decompose the gender difference in wages. The c…
Subscribe to:
Post Comments (Atom)
0 Response to Using weights in regression
Post a Comment