Avatar billede claus_sa Nybegynder
05. juli 2010 - 21:52

SPSS select cases

I får lige nedenstående spørgsmål på engelsk, da jeg har lavet indlægget på et andet forum også, og ikke orker at oversætte. Det giver lidt ekstra point så. :-)


Hi. I'm fairly new to SPSS so bear with me. I need to narrow down my huge dataset (600.000 posts) with some specific criteria that I know, but don't know how to tell SPSS to do.

Example of my data:

Variables:
ID
Type
Priority
Note

Data example
246    GG098          A                    blabla
246    JE8314          B                    blabla
321    TH831          A                    blabla
321    GG098          B                    blabla

Comments on flaws in the design of the table will not help, since i'm not the designer of the data. It's from an external supplier. :-)

Here's the question. I want something along the lines of:

IF TYPE = "GG098" AND PRIORITY = "A" THEN SELECT ALL CASES WITH THAT ID

In other words, in the above example of data I want the first two posts based on the fact that GG098 is priority A in that ID. Does the question make sense? How do I do this in SPSS?

So two questions:

1. How do I do the above in SPSS?

2. How do I write the above if I instead of "GG098" want "GG*" (all posts that start with GG)

Hope you can help.

Thanks
Avatar billede Ny bruger Nybegynder

Din løsning...

Tilladte BB-code-tags: [b]fed[/b] [i]kursiv[/i] [u]understreget[/u] Web- og emailadresser omdannes automatisk til links. Der sættes "nofollow" på alle links.

Loading billede Opret Preview
Kategori
Kurser inden for grundlæggende programmering

Log ind eller opret profil

Hov!

For at kunne deltage på Computerworld Eksperten skal du være logget ind.

Det er heldigvis nemt at oprette en bruger: Det tager to minutter og du kan vælge at bruge enten e-mail, Facebook eller Google som login.

Du kan også logge ind via nedenstående tjenester