Announcement

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

  • Stata commands

    Please I have a dummy data where Male=0 and female=1.
    I want to generate a the following variables.
    1. if at least 1 is female
    2.if all is female
    3.1 if team managed

    Please can any one help me we the stata command for the generations of these variables

  • #2
    William:
    welcome to this forum.
    This is not a profitabe way to pose your question.
    Please, see the FAQ. Thanks.
    Kind regards,
    Carlo
    (Stata 19.0)

    Comment


    • #3
      sorry Professor, thanks.

      Comment


      • #4
        Specific things you should clarify:

        Do you have one record per case, with, say, 5 separate gender variables? (e.g. gender of president and gender of vice-president and gender of treasurer)

        Do you have multiple records for clusters of cases, e.g. you have 100 teams and you have records for each team member, that includes their gender?

        I'm guessing you have something more like the latter, but, like Carlo says, as is we really can't tell and hence can't advise you very well.
        -------------------------------------------
        Richard Williams, Notre Dame Dept of Sociology
        StataNow Version: 19.5 MP (2 processor)

        EMAIL: [email protected]
        WWW: https://academicweb.nd.edu/~rwilliam/

        Comment


        • #5
          Perhaps this is what you are looking for: https://www.stata.com/support/faqs/d...ble-recording/. If not, clarify as advised in #2 and #4.

          Comment

          Working...
          X