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
Pooled panled portfolio regressionDear Statalists, currently I am struggling with the outputs of my pooled portfolio regression. I ha…
reghdfeHi Im using reghdfe regression bc i have a lot of fixed effects I will like to test my model for h…
extracting a period of timeHello STATLIST, I'm trying to extract a time period to do my analysis, I used the following code, b…
IV EstimationHi. I instrument two endogenous variables ,x1 and x2 with z1 and z2 respectively and used the foll…
r2 equals 0.00011 …
Subscribe to:
Post Comments (Atom)
0 Response to Creating a Group Variable
Post a Comment