Announcement

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

  • Recode of two Variables

    Hello everyone,

    i have 20 different Variables for the religion of the interviewed. The Variables contains the different world religions like "christian" "Islam" "Chatholic" etc. I want to combine the different religions Variables to one Variable for the religion. The new Variable should countain the different Religions as Shapes.

    Example:

    Data Now:
    v1 = Christian
    v2 = Islam
    v3 = Catholic

    Goal Data:
    v4 = Christian, Islam, Catholic


    I already read something about the recode function but i don't know how the recode function work with more than one Variable.

    Best regards,
    Fritzi
    Last edited by Fritzi He; 20 Dec 2019, 07:32. Reason: recode

  • #2
    No one can answer your question as stated, as it doesn't give us any information about your data or what you want. Just to sensitize you: What you have said is like saying "I have 20 foods in my kitchen cabinet. How do I combine them into one meal?" So, to get an answer, you'll need tell us about your 20 variables and what relation you want your one variable to have to them. To so do, using the -dataex- command as explained in the FAQ would likely be very helpful. Showing your new posting to a friend, to see if it's understandable to them, would also likely be a good idea.

    Comment


    • #3
      thank your for the advice. I hope the edit make my question a little bit clear.

      Comment


      • #4
        Still not really answerable. Please show actual data (or example data) using dataex.

        Best
        Daniel

        Comment


        • #5
          I dont have the possibilty to use dataex, because the laptop where i use the data isnt conected to the internet because of the high level of confidential of the data.

          I give my best to explain what i mean!

          Comment


          • #6
            new try for a example

            Data structure now:

            v1=
            Catholic
            Freq= 16

            v2=
            Christian
            Freq= 18

            v3=
            Islam
            Freq=20

            Goal Data structure:

            v4_new Freq:
            Catholic 16
            Christian 18
            Islam 20
            Last edited by Fritzi He; 20 Dec 2019, 09:15.

            Comment

            Working...
            X