Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Help for organising data

    Hi there

    I have monthly data of many users and of their behaviour.
    How can I create groups of people that have the same behaviour (based on a 1 of a dummy)?
    So I'd like to have groups of users of same behaviour (maybe by their ID) that I can then analyze on their treats like nationality, age or gender.

    Thank you very much for any help, I am quite new to Stata


  • #2
    You didn't get a quick answer. You'll increase the chances of a useful answer by following the FAQ on asking questions - provide Stata code in code delimiters, readable Stata output, and sample data using dataex.

    You can use the if condition on any analysis so you may not need to do the groups before the analysis:
    reg y x if dum1==1
    reg y x if dum2==1

    Comment

    Working...
    X