Quantcast
Channel: Statalist
Viewing all articles
Browse latest Browse all 72764

Assigning Maximum Value

$
0
0
Hello,

I have looked into forum but could not find any information on this. Thanks for your help in advance.

I work with household survey, and want to define a primary earner among partners (i.e. the person with higher weekly income).

So what I want to do is the following but I don't know how to assign a maximum value :

bysort hh partnered: egen primary_earner =1 if ??? weeklyincome

Thanks again for your help.

Gokay




Viewing all articles
Browse latest Browse all 72764

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>