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
Splitting a dataset into multiple datasetsHey all, Newish to STATA - longtime SAS user - sorry for the basic question. I have a dataset of ca…
Export labels from alpha output to ExcelI am estimating the alpha of several variables. I have specified asis, item, and label. I need to be…
Listing out the frequency distributions for multiple variablesHello! Quick question - I have data from a survey where participants can select multiple options fo…
residual from multiple regresionI'm working with a base that it´s compouse from 500 samples, but I have to create a compillation of …
Help creating an index variableHi all. I have a panel dataset from Brazilian states with information on the number of radio station…
Subscribe to:
Post Comments (Atom)
0 Response to Creating a Group Variable
Post a Comment