1

In SPSS I have a data in columns:

q1 q2 q3 q4 q5 q6 q7 q8

Q1 is a question 1, q2 is... Each of the fields in those columns can take only one of following values (all labeled): 1 which is no 2 which is sometimes 3 which is yes

In variable view it looks like this: {1, no} {2, sometimes} {3, yes}

I would like to get information, how many yes/sometimes/no in total did I get, how could I do that? Thank you in advance for your help, much appreciated :)

4

3 に答える 3

3

を使用するだけでこれを行うことができますVARSTOCASESRestructure次のような構文または構文でウィザードを使用できますData(元のデータセットが最初に保存されていることを確認してください)。

varstocases
/make allquestions from Q1 to Q8.

次にFREQUENCIES、新しい変数で実行しますallquestions

于 2013-11-11T15:04:32.143 に答える
2

@Mateusz Chrzaszcz: 何よりもまず、構文から作業する習慣を身につけてください。

を探しているようですCOUNTこれをAGGREGATEと混同しないでください。大きな違いは、をカウントCOUNTすることです。AGGREGATE

データを開かずに、次の構文をコピーして貼り付けて実行します。

*Create test data.

data list free/id.
begin data
1 2 3 4 5 6 7 8 9 10
end data.

do repeat q = q1 to q8.
compute q =  tru(rv.uni(1,4)).
end repeat.
exe.

value labels q1 to q8 1 'Yes'  2 'Sometimes' 3 'No'.

*Now check out the data. It should be pretty similar to what you have. 

*Next, we'll count how many times each respondent ("row") answered "Yes" on q1 to q8.

count no_yes = q1 to q8(1).

*Check frequency table with bar chart.

freq no_yes
/barchart freq.
于 2013-11-11T03:59:25.013 に答える
1

What you are describing is called a frequency table, which shows the frequency at which all (observed) values were observed.

To get it in SPSS, go in Analyze > Descriptive Statistics > Frequencies, then put your variable in the list called Variable(s). Make sure that the option Display frequency tables is checked. There are also other statistics, options, and graphs (e.g. histogram of your data, with or without normal curve superimposed) that you can get from this window as well.

于 2013-11-10T18:54:05.703 に答える