Dear Statalist users,
I have two related questions:
Question 1
---------------
I need some clarification regarding what exactly "fweight" option does, there is nothing about it in stata help and couldn't find online as well. I know that is stands for frequency weight, but how exactly stata's regress command takes it into account?
Here is what I am trying to do:
I want to run a regression on a matched sample.
I use psmatch2 to create the match between two groups of my observations. psmatch also creates the_weight variable that gives weight to each observation based on the match.
I then ran regression on my dataset as following:
as was suggested here
Question 2 (if someone can help with that)
---------------
if I use more than one nearest neighbor, the _weight variable is not an integer anymore. Which is strange as it should be the number of potential matches, and thus an integer. And because its not an integer I cannot use it as fweight value
thank you in advance
I have two related questions:
Question 1
---------------
I need some clarification regarding what exactly "fweight" option does, there is nothing about it in stata help and couldn't find online as well. I know that is stands for frequency weight, but how exactly stata's regress command takes it into account?
Here is what I am trying to do:
I want to run a regression on a matched sample.
I use psmatch2 to create the match between two groups of my observations. psmatch also creates the_weight variable that gives weight to each observation based on the match.
I then ran regression on my dataset as following:
Code:
regress y x1 .....xn [fweight=_weight]]
Question 2 (if someone can help with that)
---------------
if I use more than one nearest neighbor, the _weight variable is not an integer anymore. Which is strange as it should be the number of potential matches, and thus an integer. And because its not an integer I cannot use it as fweight value
thank you in advance
Comment