Announcement

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

  • Help me with conditionals

    Hello, I would like to ask you about this:

    I have a database that is of this type

    id_surveyor (string) ejm 67
    name_surveyor (string) ejm sarah oconor
    id_localidad (long) ejm 4553
    group (long) ejem A or B
    name_respondent (string) ejmJohn
    lastname_respondent (string) ejm Flama
    num_ID (long) ejm 45222
    economic_activity (int) ejm 1 or 0
    sex (int) ejm 1 or 0

    What I would like is to keep the name and surname of the respondents, if the following conditions are met id_surveyor is "55" id_localidad are "123" if the group is "A"

    I would like to apply restrictions for each pollster, then export them to an excel I have a group of 4 surveyors as a subsample and about those surveyors I would like to apply restrictions by locality and if possible by group, given that each one has up to 3 groups, so that they appear to me the data of the respondents.

  • #2
    Fiamma:
    this kind of questions are easier to reply if you post (via -dataex-) an example/excerpt of your data (see the FAQ on this and other posting-related advice). Thanks.
    Kind regards,
    Carlo
    (Stata 19.0)

    Comment

    Working...
    X