Hello
I have one problem, I need to create a new variable:
I have a dataset with the id of groups of students, the name of each integrate and if the student is female (=1) or not (=0)
I need to know two things:
1. groups with at least one women in each group and
2. groups with only formed by women
You have any ideas how can I do that?
Related Posts with Generate new variable by groups
Looping over files with slightly different names in different foldersHello, I previously posted code in a thread, and with the help of a couple Statalist users came up …
Using estpost and esttab for mutli-level data summary statisticsHello, I want to complete summary statistics for my multilevel data - countries (level 2) households…
Data Shaping for Panel analysisDear Stata users, I would like to shape data I add a time variable. My data are distance between co…
Copying a value into a missing value spot with specified conditionsDear Stata-users, I am struggling with a problem for some days now. I tried different methods but s…
Fixed effects with multiple intersect categoriesHi there, I have a problem with a fixed effect regression in stata and no idea how to solve it. I h…
Subscribe to:
Post Comments (Atom)
0 Response to Generate new variable by groups
Post a Comment