lulin5460 发表于 2014-10-25 15:31 
首先,谢谢你的回答。
其次,我想你还是忽略了括号的问题,括号里反而是很重要的信息。这里是取值的均值 ...
Because there are only two values in those variables: 1 and 0, in this circumstance , " mean" is " frequency".
For example, I have 5 people, variable: gender, value: woman=1, man =0
the dataset looks like this:
1
1
0
1
0
the mean of "gender" is: (1+1+0+1+0 )/5 =0.6
the frequency of "women" is: (1+1+1 ) /5 = 06.
I have 5 men, variable: education level is middle school, value: 1=yes, middel school ; 0 =no,other education level.
1
1
0
0
0
the mean of "education level is middle school" is (1+1+0+0+0 )/5 = 0.4
the frequency of "yes, education level is middel school" is = (1+1) /5 =0.4
ONLY in thoses situations:
MEAN = FREQUENCE
So, the variables in your dataset should look like this:
gender (1=w, 0=m) city (1=yes, 0=no) farm (1=yes, 0=no), married? (1=yes, 0=no), primary school education? (1=yes, 0=no), middel school education? (1=yes, 0=no), high school education? (1=yes, 0=no), above vocational education? (1=yes, 0= no)
The data of a married man from the city, who has received middel school education looks like this:
0 1 0 1 0 1 0 0
(sorry for not typing chinese, there is no pinyin in school"s PC, sorry)