五月天婷亚洲天久久综合网,婷婷丁香五月激情亚洲综合,久久男人精品女人,麻豆91在线播放

  • <center id="8gusu"></center><rt id="8gusu"></rt>
    <menu id="8gusu"><small id="8gusu"></small></menu>
  • <dd id="8gusu"><s id="8gusu"></s></dd>
    樓主: ayujt
    6897 2

    [問(wèn)答] 請(qǐng)教spss數(shù)據(jù)編碼的問(wèn)題 [推廣有獎(jiǎng)]

    • 3關(guān)注
    • 0粉絲

    大專(zhuān)生

    20%

    還不是VIP/貴賓

    -

    威望
    0 級(jí)
    論壇幣
    145 個(gè)
    通用積分
    0
    學(xué)術(shù)水平
    5 點(diǎn)
    熱心指數(shù)
    9 點(diǎn)
    信用等級(jí)
    5 點(diǎn)
    經(jīng)驗(yàn)
    326 點(diǎn)
    帖子
    11
    精華
    0
    在線時(shí)間
    80 小時(shí)
    注冊(cè)時(shí)間
    2006-4-19
    最后登錄
    2018-7-30

    +2 論壇幣
    k人 參與回答

    經(jīng)管之家送您一份

    應(yīng)屆畢業(yè)生專(zhuān)屬福利!

    求職就業(yè)群
    趙安豆老師微信:zhaoandou666

    經(jīng)管之家聯(lián)合CDA

    送您一個(gè)全額獎(jiǎng)學(xué)金名額~ !

    感謝您參與論壇問(wèn)題回答

    經(jīng)管之家送您兩個(gè)論壇幣!

    +2 論壇幣
    在spss因子分析時(shí),有不同類(lèi)型的題項(xiàng),有的是用李克特態(tài)度量表,數(shù)據(jù)值只是在1~7之間,有的是用實(shí)際數(shù)據(jù),比如價(jià)格,數(shù)值就很大。那么在編碼的時(shí)候如何處理? 請(qǐng)各位大哥幫幫小妹!
    二維碼

    掃碼加我 拉你入群

    請(qǐng)注明:姓名-公司-職位

    以便審核進(jìn)群資格,未注明則拒絕

    關(guān)鍵詞:spss數(shù)據(jù) SPSS PSS SPSS因子分析 實(shí)際數(shù)據(jù) 數(shù)據(jù) SPSS 編碼

    回帖推薦

    hanszhu 發(fā)表于2樓  查看完整內(nèi)容

    Internet Guide to SPSS for Windows RECODE The RECODE command is used to change some or all values of a variable. The new values can be stored in the same variable or in a new one. Simple example: RECODE var1 var2 (1,2 = 1) (3,4 = 2). More complex example: RECODE var1 (1,2 = 1) (3 thru 8 = 2) (missing = 99) (else = copy) INTO var1new. General Assume we have variable famimpor with valu ...

    hanszhu 發(fā)表于3樓  查看完整內(nèi)容

    SPSS Learning ModuleCreating and recoding variables http://www.ats.ucla.edu/stat/spss/modules/vars.htm

    本帖被以下文庫(kù)推薦

    沙發(fā)
    hanszhu 發(fā)表于 2006-5-16 12:57:00 |只看作者 |壇友微信交流群
    Internet Guide to SPSS for Windows

    RECODE

    The RECODE command is used to change some or all values of a variable. The new values can be stored in the same variable or in a new one.

    Simple example:

    RECODE var1 var2 (1,2 = 1) (3,4 = 2).

    More complex example:

    RECODE var1 (1,2 = 1) (3 thru 8 = 2) (missing = 99) (else = copy)
    INTO var1new.


    General

    Assume we have variable famimpor with values 1, 2, 3 and 4, measuring how important having a family is for the respondent.

    RECODE famimpor (4=3).

    This changes all occurrences of value 4 to value 3. The original value 3 remains unchanged. (If you have value labels, perhaps you should change these now accordingly). All other values remain unchanged, too.

    RECODE famimpor (1,2 =1) (3,4 = 2).

    This creates a dichotomous variable with cut-off point between 2 and 3.

    RECODE famimpor (1=4) (2=3) (3=2) (4=1).

    This reverses the order of the values. Note that this can be achieved more easily with the COMPUTE command (COMPUTE famimpor = 5 - famimpor.). This may be helpful if there are many categories.


    Creating New Variables

    One problem is that all the above examples change the original values of the variable. You should do so only if either you can reconstruct the original values from the new ones (this would be possible only in the last example!) or if you are damn sure that you have a valid copy of your data set elsewhere. Fortunately, you can create new variables with the RECODE command by adding INTO NEWVAR. See the following examples.

    RECODE famimpor (1,2 =1) (3,4 = 2) INTO famimpod.

    This creates a dichotomous variable with cut-off point between 2 and 3. The old variable remains intact, however, and the dichotomous variable is added to the data set with the name famimpod (with "D" indicating that you have a dichotomous variable. I use such memotechnic devices quite frequently, but of course you don't have to.)

    Note, however, that you have to take some precautions when RECODING INTO a new variable. In this case, you have to be sure that the new variable has all the valid values you wish it to have. If the RECODE command names only part of the values, all the other values will be treated as system missing values. Yet, there is an easy way to deal with this problem.

    WRONG: RECODE famimpor (4=3) INTO famimpon.

    This would change all occurrences of value 4 to value 3. However, all other values would be treated as system missing. Here's the better way:

    RECODE famimpor (4=3) (ELSE=COPY) INTO famimpon.

    This changes all occurrences of value 4 to value 3, and all other values are copied to the new variable. Of course, you can make as many explicit recodings as you like and then deal with the rest via ELSE=COPY.

    The ELSE part of the RECODE command is not restricted to the "COPY" case just explained. You can also use it with explicit values, as in the following example:

    RECODE famimpor (4,3=2) (ELSE=1) INTO famimpor.

    One problem with RECODE INTO, however, is that variable and value labels are not automatically created (how should they?). So don't forget to label the new variable.


    Several variables

    can be addressed in one RECODE statement, provided that all variables are to be affected in the same way, as in the following example.

    RECODE famimpor workimpo chldimpo (4,3=2) (ELSE=1).

    However, if you wish to RECODE these variables INTO new variables, for each variable a separate RECODE command line is necessary.


    Treatment of Missing Values

    Missing values can be addressed via the keywords "sysmis" or "missing".

    Assume that in addition to the values 1 thru 4, there are also values 8 and 9 which are defined as missing values. Here's a few examples and what they do.

    RECODE famimpor (missing = 8).

    All missing values (i.e., values 8 and 9 and perhaps also system missing values) will have the value 8. 8 will still be defined as missing.

    RECODE famimpor (missing = 7).

    All missing values (i.e., values 8 and 9 and perhaps also system missing values) will have the value 7. 7 will not be defined as missing!

    If you have system missing values and want to recode only these to another value, you can use the keyword "sysmis" instead of "missing".

    RECODE famimpor (sysmis = 7).

    Again, if you have defined values 8 and 9 as missing, 7 will not be recognized as a (formerly) missing value. You may wish to either define 7 now as missing or to assign a value label that tells you the meaning of 7.


    Simplifications

    Often, several values of a variable have to be addressed. Some keywords help to make this process easier.

    RECODE famimpor (lowest thru 3 = 3).
    RECODE famimpor (2 thru highest = 2).

    The first command recodes all values from the lowest value to (and including) value 3 into the value 3. The second command recodes all values from the value 2 to (and including) the highest value into the value 2. Note that "lowest" can be abbreviated as "lo" and "highest" as "hi". CAUTION: Assuming that 8 and 9 are still defined as user missing values, these will be recoded to 2 in the last example (and of course won't be defined as missing anymore).

    已有 1 人評(píng)分經(jīng)驗(yàn) 論壇幣 收起 理由
    bakoll + 10 + 10 熱心幫助其他會(huì)員

    總評(píng)分: 經(jīng)驗(yàn) + 10  論壇幣 + 10   查看全部評(píng)分

    藤椅
    hanszhu 發(fā)表于 2006-5-16 12:59:00 |只看作者 |壇友微信交流群

    SPSS Learning Module
    Creating and recoding variables

    http://www.ats.ucla.edu/stat/spss/modules/vars.htm

    本版微信群
    加好友,備注cda
    拉您進(jìn)交流群

    京ICP備16021002-2號(hào) 京B2-20170662號(hào) 京公網(wǎng)安備 11010802022788號(hào) 論壇法律顧問(wèn):王進(jìn)律師 知識(shí)產(chǎn)權(quán)保護(hù)聲明   免責(zé)及隱私聲明

    GMT+8, 2025-1-1 15:00