I want to create groups for propensity score matching. If I want to classify the data into different age groups, I can create a new variable with all zeroes and give the values I want to each age group using replace. But is there a way to use egen along with group to do that?
I tried egen age_1 = group(age>=17 & age<=20) but this seems to be incorrect.
Related Posts with Creating a Group Variable
Merging two datasetsHello! I am working with survey data and want to merge two datasets. One dataset has biographical in…
Excluding samplesHi all, I have a problem with bootstrap. In particular I have a variable containing a lot of zeros.…
Problem with highly skewed independent variables and many zerosDear members, I have a binary dependent variable and want to estimate either a logistic regression …
computing skewness and kurtosis of a binary variable with two mutually exclusive optionsHi there, This is my first post on this forum. I am rather confused at a question I have been assign…
Problems Stating a simultaneous GMM 3sls Model using MoptimzeApologies fore the long post that would follow, but I am having error estimating cluster robust 3SLS…
Subscribe to:
Post Comments (Atom)
0 Response to Creating a Group Variable
Post a Comment