{"id":24,"date":"2024-06-30T13:30:54","date_gmt":"2024-06-30T04:30:54","guid":{"rendered":"https:\/\/best-biostatistics.com\/toukei-er\/entry\/recategorization-with-combined-conditions-using-if-in-spss\/"},"modified":"2024-08-25T20:24:52","modified_gmt":"2024-08-25T11:24:52","slug":"recategorization-with-combined-conditions-using-if-in-spss","status":"publish","type":"post","link":"https:\/\/best-biostatistics.com\/toukei-er\/entry\/recategorization-with-combined-conditions-using-if-in-spss\/","title":{"rendered":"SPSS \u3067\u8907\u6570\u6761\u4ef6\u3092\u6e80\u305f\u3059\u75c7\u4f8b\u3054\u3068\u306b\u5206\u3051\u305f\u30ab\u30c6\u30b4\u30ea\u30ab\u30eb\u30c7\u30fc\u30bf\u3092\u4f5c\u6210\u3059\u308b\u65b9\u6cd5"},"content":{"rendered":"\n<p>SPSS \u3067\u8907\u6570\u306e\u5909\u6570\u3092\u7d44\u307f\u5408\u308f\u305b\u305f\u6761\u4ef6\u3067\u3001\u65b0\u305f\u306a\u30ab\u30c6\u30b4\u30ea\u30ab\u30eb\u30c7\u30fc\u30bf\u3092\u4f5c\u6210\u3057\u305f\u3044\u3053\u3068\u304c\u3042\u308b<\/p>\n\n\n\n<p>\u8907\u6570\u6761\u4ef6\u3092\u6e80\u305f\u3059\u75c7\u4f8b\u3054\u3068\u306b\u5206\u3051\u305f\u30ab\u30c6\u30b4\u30ea\u30ab\u30eb\u30c7\u30fc\u30bf\u3092\u4f5c\u6210\u3059\u308b\u65b9\u6cd5\u3092\u3054\u7d39\u4ecb<\/p>\n\n\n\n<!--more-->\n\n\n\n<h2 class=\"wp-block-heading\" id=\"\u72b6\u6cc1\u8a2d\u5b9a\u3068\u65b9\u91dd\">\u72b6\u6cc1\u8a2d\u5b9a\u3068\u65b9\u91dd<\/h2>\n\n\n\n<p>\u4f8b\u3068\u3057\u3066\u3001\u4ee5\u4e0b\u306e X1, X2 \u3068\u3044\u3046 2 \u3064\u306e\u5909\u6570\u306e\u7d44\u307f\u5408\u308f\u305b\u3067\u3001X3 \u3068\u3044\u3046\u65b0\u305f\u306a\u30ab\u30c6\u30b4\u30ea\u5909\u6570\u3092\u4f5c\u6210\u3059\u308b<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>X1 \uff08\uff10\u3068\uff11\u306e\u30c7\u30fc\u30bf\u3092\u542b\u3080\u4e8c\u5024\u306e\u30ab\u30c6\u30b4\u30ea\u30ab\u30eb\u30c7\u30fc\u30bf\uff09<\/li>\n\n\n\n<li>X2 \uff08\u540c\u4e0a\uff09<\/li>\n\n\n\n<li>X3\uff1a\n<ul class=\"wp-block-list\">\n<li>X1 \u3068 X2 \u3069\u3061\u3089\u3082 0 \u306e\u5834\u5408\u306f\uff10<\/li>\n\n\n\n<li>X1 \u3068 X2 \u304c\u3069\u3061\u3089\u304b 1 \u306e\u5834\u5408\u306f \uff11<\/li>\n\n\n\n<li>X1 \u3068 X2 \u304c\u3069\u3061\u3089\u3082 1 \u306e\u5834\u5408\u306f \uff12<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n\n\n\n<p>\u5927\u65b9\u91dd\u3068\u3057\u3066\u3001\u5909\u63db\u30e1\u30cb\u30e5\u30fc\u306e\u300c\u4ed6\u306e\u5909\u6570\u3078\u306e\u5024\u306e\u5272\u308a\u5f53\u3066\u300d\u30e1\u30cb\u30e5\u30fc\u3067\u3001\u300cIF\u300d\u3092\u4f7f\u3046\u65b9\u6cd5\u3067\u3042\u308b<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"\u624b\u9806\">\u624b\u9806<\/h2>\n\n\n\n<p>\uff11\uff0e\u4ed6\u306e\u5909\u6570\u3078\u306e\u5024\u306e\u5272\u308a\u5f53\u3066\u3067\u3001X1 \u2192 X3 \u3092\u30bb\u30c3\u30c8\u3057\u3066\u3001IF \u3092\u30af\u30ea\u30c3\u30af\u3059\u308b<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"979\" height=\"552\" src=\"https:\/\/best-biostatistics.com\/toukei-er\/wp-content\/uploads\/2024\/06\/20240628225623.png\" alt=\"\" class=\"wp-image-735\" srcset=\"https:\/\/best-biostatistics.com\/toukei-er\/wp-content\/uploads\/2024\/06\/20240628225623.png 979w, https:\/\/best-biostatistics.com\/toukei-er\/wp-content\/uploads\/2024\/06\/20240628225623-300x169.png 300w, https:\/\/best-biostatistics.com\/toukei-er\/wp-content\/uploads\/2024\/06\/20240628225623-768x433.png 768w\" sizes=\"(max-width: 979px) 100vw, 979px\" \/><\/figure>\n\n\n\n<p><span itemscope=\"\" itemtype=\"http:\/\/schema.org\/Photograph\"><\/span><\/p>\n\n\n\n<p>\uff12\uff0eIF \u6761\u4ef6\u3092\u6e80\u305f\u3057\u305f\u30b1\u30fc\u30b9\u3092\u542b\u3080\u3092\u9078\u629e\u3057\u3001\u67a0\u306b X2 = 0 \u3092\u66f8\u304d\u3001\u7d9a\u884c\u3092\u30af\u30ea\u30c3\u30af\u3059\u308b<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"686\" height=\"579\" src=\"https:\/\/best-biostatistics.com\/toukei-er\/wp-content\/uploads\/2024\/06\/20240628225639.png\" alt=\"\" class=\"wp-image-736\" srcset=\"https:\/\/best-biostatistics.com\/toukei-er\/wp-content\/uploads\/2024\/06\/20240628225639.png 686w, https:\/\/best-biostatistics.com\/toukei-er\/wp-content\/uploads\/2024\/06\/20240628225639-300x253.png 300w\" sizes=\"(max-width: 686px) 100vw, 686px\" \/><\/figure>\n\n\n\n<p><span itemscope=\"\" itemtype=\"http:\/\/schema.org\/Photograph\"><\/span><\/p>\n\n\n\n<p>\uff13\uff0e\u4eca\u307e\u3067\u306e\u5024\u3068\u65b0\u3057\u3044\u5024\u3092\u30af\u30ea\u30c3\u30af\u3059\u308b<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"979\" height=\"552\" src=\"https:\/\/best-biostatistics.com\/toukei-er\/wp-content\/uploads\/2024\/06\/20240628225652.png\" alt=\"\" class=\"wp-image-738\" srcset=\"https:\/\/best-biostatistics.com\/toukei-er\/wp-content\/uploads\/2024\/06\/20240628225652.png 979w, https:\/\/best-biostatistics.com\/toukei-er\/wp-content\/uploads\/2024\/06\/20240628225652-300x169.png 300w, https:\/\/best-biostatistics.com\/toukei-er\/wp-content\/uploads\/2024\/06\/20240628225652-768x433.png 768w\" sizes=\"(max-width: 979px) 100vw, 979px\" \/><\/figure>\n\n\n\n<p><span itemscope=\"\" itemtype=\"http:\/\/schema.org\/Photograph\"><\/span><\/p>\n\n\n\n<p>\uff14\uff0e0 -&gt; 0, 1 -&gt; 1 \u306e 2 \u3064\u3092\u8ffd\u52a0\u3059\u308b\u3068\u3001\u4ee5\u4e0b\u306e\u6307\u5b9a\u304c\u3067\u304d\u305f\u3053\u3068\u306b\u306a\u308b<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>X2=0 \u304b\u3064 X1=0 \u306e\u5834\u5408 X3=0<\/li>\n\n\n\n<li>X2=0 \u304b\u3064 X1=1 \u306e\u5834\u5408 X3=1<\/li>\n<\/ul>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"699\" height=\"473\" src=\"https:\/\/best-biostatistics.com\/toukei-er\/wp-content\/uploads\/2024\/06\/20240628225713.png\" alt=\"\" class=\"wp-image-739\" srcset=\"https:\/\/best-biostatistics.com\/toukei-er\/wp-content\/uploads\/2024\/06\/20240628225713.png 699w, https:\/\/best-biostatistics.com\/toukei-er\/wp-content\/uploads\/2024\/06\/20240628225713-300x203.png 300w\" sizes=\"(max-width: 699px) 100vw, 699px\" \/><\/figure>\n\n\n\n<p><span itemscope=\"\" itemtype=\"http:\/\/schema.org\/Photograph\"><\/span><\/p>\n\n\n\n<p>\uff15\uff0e\u7d9a\u884c\u3067\u623b\u308a\u3001OK \u3092\u30af\u30ea\u30c3\u30af\u3059\u308b\u3068\u3001\u30c7\u30fc\u30bf\u30d3\u30e5\u30fc\u3067\u898b\u308b\u3068 X2 = 0 \u306e\u75c7\u4f8b\u3060\u3051 X3 \u306e\u5024\u304c\u5165\u529b\u3055\u308c\u3066\u3044\u308b\u306e\u304c\u308f\u304b\u308b<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"297\" height=\"486\" src=\"https:\/\/best-biostatistics.com\/toukei-er\/wp-content\/uploads\/2024\/06\/20240628225725.png\" alt=\"\" class=\"wp-image-740\" srcset=\"https:\/\/best-biostatistics.com\/toukei-er\/wp-content\/uploads\/2024\/06\/20240628225725.png 297w, https:\/\/best-biostatistics.com\/toukei-er\/wp-content\/uploads\/2024\/06\/20240628225725-183x300.png 183w\" sizes=\"(max-width: 297px) 100vw, 297px\" \/><\/figure>\n\n\n\n<p><span itemscope=\"\" itemtype=\"http:\/\/schema.org\/Photograph\"><\/span><\/p>\n\n\n\n<p>\uff16\uff0e\u3082\u3046\u4e00\u5ea6 \u4ed6\u306e\u5909\u6570\u3078\u306e\u5024\u306e\u5272\u308a\u5f53\u3066\u30e1\u30cb\u30e5\u30fc\u306b\u623b\u308a\u3001IF \u3092\u30af\u30ea\u30c3\u30af\u3057\u3066\u3001X2 = 1\u306b\u5909\u66f4\u3057\u3066\u7d9a\u884c<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"686\" height=\"579\" src=\"https:\/\/best-biostatistics.com\/toukei-er\/wp-content\/uploads\/2024\/06\/20240628225734.png\" alt=\"\" class=\"wp-image-741\" srcset=\"https:\/\/best-biostatistics.com\/toukei-er\/wp-content\/uploads\/2024\/06\/20240628225734.png 686w, https:\/\/best-biostatistics.com\/toukei-er\/wp-content\/uploads\/2024\/06\/20240628225734-300x253.png 300w\" sizes=\"(max-width: 686px) 100vw, 686px\" \/><\/figure>\n\n\n\n<p><span itemscope=\"\" itemtype=\"http:\/\/schema.org\/Photograph\"><\/span><\/p>\n\n\n\n<p>\uff17\uff0e\u4eca\u307e\u3067\u306e\u5024\u3068\u65b0\u3057\u3044\u5024\u3092\u30af\u30ea\u30c3\u30af\u3057\u305f\u3089\u3001\u5148\u307b\u3069\u306e\u6761\u4ef6\u3092\u3044\u3063\u305f\u3093\u4e21\u65b9\u3068\u3082\u524a\u9664\u3059\u308b\uff08\u5909\u66f4\u3067\u3082\u53ef\u80fd\uff09<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"699\" height=\"473\" src=\"https:\/\/best-biostatistics.com\/toukei-er\/wp-content\/uploads\/2024\/06\/20240628225750.png\" alt=\"\" class=\"wp-image-742\" srcset=\"https:\/\/best-biostatistics.com\/toukei-er\/wp-content\/uploads\/2024\/06\/20240628225750.png 699w, https:\/\/best-biostatistics.com\/toukei-er\/wp-content\/uploads\/2024\/06\/20240628225750-300x203.png 300w\" sizes=\"(max-width: 699px) 100vw, 699px\" \/><\/figure>\n\n\n\n<p><span itemscope=\"\" itemtype=\"http:\/\/schema.org\/Photograph\"><\/span><\/p>\n\n\n\n<p>\uff18\uff0e0 -&gt; 1, 1 -&gt; 2 \u3092\u4f5c\u6210\u3059\u308b\u3068\u3001\u4ee5\u4e0b\u3092\u6307\u5b9a\u3057\u305f\u3053\u3068\u306b\u306a\u308b<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>X2=1 \u304b\u3064 X1=0 \u306e\u5834\u5408 X3=1<\/li>\n\n\n\n<li>X2=1 \u304b\u3064 X1=1 \u306e\u5834\u5408 X3=2<\/li>\n<\/ul>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"699\" height=\"473\" src=\"https:\/\/best-biostatistics.com\/toukei-er\/wp-content\/uploads\/2024\/06\/20240628225801.png\" alt=\"\" class=\"wp-image-743\" srcset=\"https:\/\/best-biostatistics.com\/toukei-er\/wp-content\/uploads\/2024\/06\/20240628225801.png 699w, https:\/\/best-biostatistics.com\/toukei-er\/wp-content\/uploads\/2024\/06\/20240628225801-300x203.png 300w\" sizes=\"(max-width: 699px) 100vw, 699px\" \/><\/figure>\n\n\n\n<p><span itemscope=\"\" itemtype=\"http:\/\/schema.org\/Photograph\"><\/span><\/p>\n\n\n\n<p>\uff19\uff0e\u7d9a\u884c\u3067\u623b\u308a\u3001OK \u3092\u30af\u30ea\u30c3\u30af\u3057\u3066\u3001\u30c7\u30fc\u30bf\u30d3\u30e5\u30fc\u3092\u898b\u308b\u3068\u3001X2 = 1 \u306e\u75c7\u4f8b \u3082X3 \u306e\u5024\u304c\u5165\u529b\u3055\u308c\u305f\u306e\u304c\u308f\u304b\u308b<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"288\" height=\"373\" src=\"https:\/\/best-biostatistics.com\/toukei-er\/wp-content\/uploads\/2024\/06\/20240628225812.png\" alt=\"\" class=\"wp-image-744\" srcset=\"https:\/\/best-biostatistics.com\/toukei-er\/wp-content\/uploads\/2024\/06\/20240628225812.png 288w, https:\/\/best-biostatistics.com\/toukei-er\/wp-content\/uploads\/2024\/06\/20240628225812-232x300.png 232w\" sizes=\"(max-width: 288px) 100vw, 288px\" \/><\/figure>\n\n\n\n<p><span itemscope=\"\" itemtype=\"http:\/\/schema.org\/Photograph\"><\/span><\/p>\n\n\n\n\n\n\n\n<h3 class=\"wp-block-heading\" id=\"\u3067\u304d\u3042\u304c\u308a\u306e\u78ba\u8a8d\">\u3067\u304d\u3042\u304c\u308a\u306e\u78ba\u8a8d<\/h3>\n\n\n\n<p>\u30af\u30ed\u30b9\u96c6\u8a08\u8868\u3067\u3001\u884c\uff1aX1\u3001\u5217\uff1aX2\u3001\u5c64\uff1aX3 \u3092\u6307\u5b9a\u3057\u3066\u3001\u304d\u3061\u3093\u3068\u610f\u56f3\u3057\u305f\u3068\u304a\u308a\u306b\u5909\u63db\u3067\u304d\u3066\u3044\u308b\u304b\u78ba\u8a8d\u3059\u308b<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"364\" height=\"294\" src=\"https:\/\/best-biostatistics.com\/toukei-er\/wp-content\/uploads\/2024\/06\/20240628225825.png\" alt=\"\" class=\"wp-image-745\" srcset=\"https:\/\/best-biostatistics.com\/toukei-er\/wp-content\/uploads\/2024\/06\/20240628225825.png 364w, https:\/\/best-biostatistics.com\/toukei-er\/wp-content\/uploads\/2024\/06\/20240628225825-300x242.png 300w\" sizes=\"(max-width: 364px) 100vw, 364px\" \/><\/figure>\n\n\n\n<p><span itemscope=\"\" itemtype=\"http:\/\/schema.org\/Photograph\"><\/span><\/p>\n\n\n\n<p>\u9ec4\u8272\u30cf\u30a4\u30e9\u30a4\u30c8\u3057\u305f\u90e8\u5206\u304c\u3001\u3067\u304d\u3042\u304c\u308a\u306e\u75c7\u4f8b\u6570\u3067\u3042\u308b<\/p>\n\n\n\n<div id=\"biost-2801617107\" class=\"biost- biost-entity-placement\"><p style=\"text-align: center;\"><span style=\"font-size: 20px;\"><strong><a href=\"https:\/\/best-biostatistics.com\/kmhl\">\uff1e\uff1e\u3082\u3046\u7d71\u8a08\u3067\u60a9\u3080\u306e\u306f\u7d42\u308f\u308a\u306b\u3057\u307e\u305b\u3093\u304b\uff1f\u00a0<\/a><\/strong><\/span><\/p>\r\n<a href=\"https:\/\/best-biostatistics.com\/kmhl\"><img class=\"aligncenter wp-image-2794 size-full\" src=\"https:\/\/best-biostatistics.com\/wp\/wp-content\/uploads\/2023\/11\/bn_r_03.png\" alt=\"\" width=\"500\" height=\"327\" \/><\/a>\r\n<p style=\"text-align: center;\"><span style=\"color: #ff0000; font-size: 20px;\"><strong><span class=\"marker2\">\u21911\u4e07\u4eba\u4ee5\u4e0a\u306e\u533b\u7642\u5f93\u4e8b\u8005\u304c\u8cfc\u8aad\u4e2d<\/span><\/strong><\/span><\/p><\/div><h2 class=\"wp-block-heading\" id=\"\u307e\u3068\u3081\">\u307e\u3068\u3081<\/h2>\n\n\n\n<p>SPSS \u3067\u3001\u8907\u6570\u306e\u6761\u4ef6\u3092\u6e80\u305f\u3059\u75c7\u4f8b\u3054\u3068\u306b\u5206\u3051\u305f\u30ab\u30c6\u30b4\u30ea\u30ab\u30eb\u30c7\u30fc\u30bf\u3092\u4f5c\u6210\u3059\u308b\u65b9\u6cd5\u3092\u7d39\u4ecb\u3057\u305f<\/p>\n\n\n\n<p>IF \u3068\u3044\u3046\u30aa\u30d7\u30b7\u30e7\u30f3\u3092\u4f7f\u3046\u3053\u3068\u3067\u30012 \u3064\u76ee\u306e\u6761\u4ef6\u3092\u6307\u5b9a\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u308b<\/p>\n\n\n\n<p>\u4f55\u3089\u304b\u53c2\u8003\u306b\u306a\u308c\u3070<\/p>\n","protected":false},"excerpt":{"rendered":"<p>SPSS \u3067\u8907\u6570\u306e\u5909\u6570\u3092\u7d44\u307f\u5408\u308f\u305b\u305f\u6761\u4ef6\u3067\u3001\u65b0\u305f\u306a\u30ab\u30c6\u30b4\u30ea\u30ab\u30eb\u30c7\u30fc\u30bf\u3092\u4f5c\u6210\u3057\u305f\u3044\u3053\u3068\u304c\u3042\u308b \u8907\u6570\u6761\u4ef6\u3092\u6e80\u305f\u3059\u75c7\u4f8b\u3054\u3068\u306b\u5206\u3051\u305f\u30ab\u30c6\u30b4\u30ea\u30ab\u30eb\u30c7\u30fc\u30bf\u3092\u4f5c\u6210\u3059\u308b\u65b9\u6cd5\u3092\u3054\u7d39\u4ecb<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"swell_btn_cv_data":"","_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[13,17],"tags":[],"class_list":["post-24","post","type-post","status-publish","format-standard","hentry","category-spss","category-17"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/best-biostatistics.com\/toukei-er\/wp-json\/wp\/v2\/posts\/24","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/best-biostatistics.com\/toukei-er\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/best-biostatistics.com\/toukei-er\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/best-biostatistics.com\/toukei-er\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/best-biostatistics.com\/toukei-er\/wp-json\/wp\/v2\/comments?post=24"}],"version-history":[{"count":1,"href":"https:\/\/best-biostatistics.com\/toukei-er\/wp-json\/wp\/v2\/posts\/24\/revisions"}],"predecessor-version":[{"id":746,"href":"https:\/\/best-biostatistics.com\/toukei-er\/wp-json\/wp\/v2\/posts\/24\/revisions\/746"}],"wp:attachment":[{"href":"https:\/\/best-biostatistics.com\/toukei-er\/wp-json\/wp\/v2\/media?parent=24"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/best-biostatistics.com\/toukei-er\/wp-json\/wp\/v2\/categories?post=24"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/best-biostatistics.com\/toukei-er\/wp-json\/wp\/v2\/tags?post=24"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}