

{"id":13483,"date":"2018-04-16T06:46:42","date_gmt":"2018-04-16T06:46:42","guid":{"rendered":"https:\/\/data-flair.training\/blogs\/?p=13483"},"modified":"2021-12-03T10:35:35","modified_gmt":"2021-12-03T05:05:35","slug":"categorical-data-analysis","status":"publish","type":"post","link":"https:\/\/data-flair.training\/blogs\/categorical-data-analysis\/","title":{"rendered":"SAS\/STAT Categorical Data Analysis Procedure"},"content":{"rendered":"<p>In our<a href=\"https:\/\/data-flair.training\/blogs\/stat-software\/\"><strong> SAS\/STAT Software Tutorial<\/strong><\/a>, we looked at<a href=\"https:\/\/data-flair.training\/blogs\/stat-bayesian-analysis\/\"><strong> Bayesian analysis<\/strong> <\/a>and the procedures used for performing it. Today, we will be looking at SAS\/STAT Categorical Data Analysis and how it is used in SAS\/STAT for computing different models. Our focus here will be to understand different procedures that can be used for Categorical data analysis in SAS\/STAT Software through the use of examples.<br \/>\nSo let&#8217;s start with SAS\/STAT Categorical Data Analysis Procedure.<\/p>\n<h3>An Introduction to SAS\/STAT Categorical Data Analysis<\/h3>\n<p>Categorical data is a data in which observations are classified as belonging to one or two categories. For example, an item might be judged as good or bad, or a response to a survey might include categories such as agree, disagree, or no opinion.<\/p>\n<p>In this SAS\/STAT categorical data analysis, the distribution of a categorical variable is described by its frequency and proportion rather than by its mean and variance. Statistical methods (i.e.,<a href=\"https:\/\/data-flair.training\/blogs\/sas-t-test\/\"><strong> t-test<\/strong><\/a>, <a href=\"https:\/\/data-flair.training\/blogs\/sas-correlation-analysis\/\"><strong>correlation<\/strong>\u00a0<\/a>) designed for continuous dependent variables are not adequate for analyzing categorical dependent variables.<br \/>\n<strong><a href=\"https:\/\/data-flair.training\/blogs\/stat-software-features\/\">Let&#8217;s Learn SAS\/STAT Software Features<\/a><\/strong><\/p>\n<p>Some common techniques used to analyze categorical data are frequency tables, contingency tables, charts and different tests like a test of proportion and <a href=\"https:\/\/data-flair.training\/blogs\/sas-chi-square-test\/\"><strong>chi-square tests<\/strong><\/a>.<br \/>\nThe decision on how to analyze categorical variables is often based on:<br \/>\n\u2013 The measurement level and number of categories independent variables<br \/>\n\u2013 The measurement level and number of categories in independent variables<br \/>\n\u2013 Sample size<br \/>\n\u2013 Number of independent variables<\/p>\n<div id=\"attachment_13512\" style=\"width: 677px\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2018\/04\/categorical-data-sample-image.jpg\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-13512\" class=\"wp-image-13512 size-full\" src=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2018\/04\/categorical-data-sample-image.jpg\" alt=\"SAS\/STAT Categorical Data Analysis\" width=\"667\" height=\"319\" srcset=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2018\/04\/categorical-data-sample-image.jpg 667w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2018\/04\/categorical-data-sample-image-150x72.jpg 150w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2018\/04\/categorical-data-sample-image-300x143.jpg 300w\" sizes=\"auto, (max-width: 667px) 100vw, 667px\" \/><\/a><p id=\"caption-attachment-13512\" class=\"wp-caption-text\">SAS\/STAT Categorical Data Analysis<\/p><\/div>\n<h3>Procedures for Performing Categorical Data Analysis in SAS\/STAT<\/h3>\n<p>SAS\/STAT uses the following procedures to compute categorical data analysis of a sample data. Each SAS\/STAT categorical data analysis procedure has a different syntax and is used with different type of data in different contexts. Let us explore each one of these Data Analysis Procedure in SAS\/STAT.<br \/>\n<a href=\"https:\/\/data-flair.training\/blogs\/stat-software-advantages\/\"><strong>Read about\u00a0SAS\/STAT Software Advantages &amp; Disadvantages<\/strong><\/a><\/p>\n<h4>a. SAS PROC LOGISTIC<\/h4>\n<p>The PROC LOGISTIC procedure in SAS\/STAT performs a logistic regression of data. Logistic <a href=\"https:\/\/data-flair.training\/blogs\/sas-linear-regression\/\"><strong>regression analysis<\/strong> <\/a>is used to investigate the\u00a0relationship between the discrete responses and a set of explanatory variables. The LOGISTIC procedure fits linear logistic regression models by the method of maximum likelihood.<\/p>\n<p>In the below example we will be examining the effect of engine size and weight on fuel efficiency.<br \/>\n<strong>SAS PROC LOGISTIC Syntax-<\/strong><\/p>\n<pre class=\"EnlighterJSRAW\">PROC LOGISTIC\u00a0DATASET;\r\nCLASS variable;\r\nMODEL variable = effects;\r\noddsratio variable;<\/pre>\n<p><strong>\u00a0<\/strong><br \/>\n<strong>SAS PROC LOGISTIC Example-<\/strong><\/p>\n<pre class=\"EnlighterJSRAW\">data cars;\r\nset sashelp.cars;\r\nif mpg_highway &lt;21 then fuel_efficient=0;\r\nelse fuel_efficient=1;\r\nrun;\r\nods graphics on;\r\nproc logistic data=cars;\r\nmodel fuel_efficient= enginesize weight;\r\noddsratio fuel_efficient;\r\nrun;<\/pre>\n<p>The PROC LOGISTIC and MODEL statements are required statements. The ODDSRATIO statement produces odds ratios for\u00a0variables.<strong>\u00a0 \u00a0<\/strong><br \/>\n<strong><a href=\"https:\/\/data-flair.training\/blogs\/sas-variable\/\">Let&#8217;s Explore\u00a0SAS Variable \u2013 Types &amp; Creating Variables in SAS<\/a><\/strong><\/p>\n<div id=\"attachment_13502\" style=\"width: 356px\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2018\/04\/proc-logistic-output-2.jpg\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-13502\" class=\"wp-image-13502 size-full\" src=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2018\/04\/proc-logistic-output-2.jpg\" alt=\"SAS\/STAT Categorical Data Analysis Procedure\" width=\"346\" height=\"347\" srcset=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2018\/04\/proc-logistic-output-2.jpg 346w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2018\/04\/proc-logistic-output-2-150x150.jpg 150w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2018\/04\/proc-logistic-output-2-300x300.jpg 300w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2018\/04\/proc-logistic-output-2-100x100.jpg 100w\" sizes=\"auto, (max-width: 346px) 100vw, 346px\" \/><\/a><p id=\"caption-attachment-13502\" class=\"wp-caption-text\">SAS\/STAT Categorical Data Analysis &#8211;\u00a0SAS PROC LOGISTIC<\/p><\/div>\n<div id=\"attachment_13503\" style=\"width: 298px\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2018\/04\/proc-logistic-output-1.jpg\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-13503\" class=\"wp-image-13503 size-full\" src=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2018\/04\/proc-logistic-output-1.jpg\" alt=\"SAS\/STAT Categorical Data Analysis Procedure\" width=\"288\" height=\"640\" srcset=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2018\/04\/proc-logistic-output-1.jpg 288w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2018\/04\/proc-logistic-output-1-68x150.jpg 68w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2018\/04\/proc-logistic-output-1-135x300.jpg 135w\" sizes=\"auto, (max-width: 288px) 100vw, 288px\" \/><\/a><p id=\"caption-attachment-13503\" class=\"wp-caption-text\">SAS\/STAT Categorical Data Analysis &#8211;\u00a0SAS PROC LOGISTIC<\/p><\/div>\n<div id=\"attachment_13505\" style=\"width: 675px\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2018\/04\/proc-logistic-output-3.jpg\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-13505\" class=\"wp-image-13505 size-full\" src=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2018\/04\/proc-logistic-output-3.jpg\" alt=\"SAS\/STAT Categorical Data Analysis Procedure\" width=\"665\" height=\"609\" srcset=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2018\/04\/proc-logistic-output-3.jpg 665w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2018\/04\/proc-logistic-output-3-150x137.jpg 150w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2018\/04\/proc-logistic-output-3-300x275.jpg 300w\" sizes=\"auto, (max-width: 665px) 100vw, 665px\" \/><\/a><p id=\"caption-attachment-13505\" class=\"wp-caption-text\">SAS\/STAT Categorical Data Analysis &#8211;\u00a0SAS PROC LOGISTIC<\/p><\/div>\n<h4><span style=\"font-family: Georgia, Georgia, serif;font-weight: inherit\">b. SAS PROC PROBIT<\/span><\/h4>\n<p>The PROC PROBIT procedure in SAS\/STAT is used for performing regression. It can be used only for dependent variables that are, variables that can take up only two values. In this, we intend to find out the probability that the dependent variable will fall into any one of the two categories.<br \/>\n<strong><a href=\"https:\/\/data-flair.training\/blogs\/sas-standard-deviation\/\">Let&#8217;s Discuss Different Ways of Measuring Standard Deviation<\/a><\/strong><br \/>\n<strong>SAS PROC PROBIT Syntax-<\/strong><\/p>\n<pre class=\"EnlighterJSRAW\">PROC PROBIT dataset;\r\nCLASS &lt;dependent variables&gt;;\r\nModel&lt; dependent variables&gt;= &lt;independent VARIABLES&gt;;<\/pre>\n<p>In the below example, the DATA= option specifies the dataset that will be studied.<br \/>\n<strong>The PLOTS=<\/strong> option in the PROC PROBIT statement, together with the ODS GRAPHICS statement, requests all plots (because all has been specified in brackets, we can choose a specific plot also) for the estimated probability values and height levels.<br \/>\n<strong>The MODEL<\/strong> statement prepares a response between a dependent variable and independent variables. The variables height and weight are the stimuli or explanatory variables.<br \/>\n<strong>The OUTPUT<\/strong> statement creates a new data set, ABC, that contains all the variables in the original data set, and a new variable, prob, that represents the predicted probabilities.<br \/>\nIn the first output, SAS\/STAT displays background information about the model fit. Included are the name of the input data set, the response variables used, and the number of observations, events, and trials.<br \/>\n<a href=\"https:\/\/data-flair.training\/blogs\/sas-arithmetic-mean\/\"><strong>Read About SAS Arithmetic Mean \u2013 SAS PROC MEANS\u00a0<\/strong><\/a><br \/>\nThe different plot options that can be specified with PLOTS= option are-<\/p>\n<ol>\n<li>CDFPLOT<\/li>\n<li>IPPPLOT<\/li>\n<li>PREDPLOT<\/li>\n<li>LPREDPLOT<\/li>\n<li>ALL<\/li>\n<li>NONE<\/li>\n<\/ol>\n<p><strong>SAS PROC PROBIT Example-<\/strong><\/p>\n<pre class=\"EnlighterJSRAW\">ods graphics on;\r\nproc probit data=sashelp.class\u00a0 plots=all;\r\nclass sex;\r\nmodel sex =\u00a0 height weight;\r\noutput out=abc \u00a0p=prob;\r\nrun;<\/pre>\n<div id=\"attachment_13506\" style=\"width: 638px\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2018\/04\/proc-probit-output-1.jpg\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-13506\" class=\"wp-image-13506 size-full\" src=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2018\/04\/proc-probit-output-1.jpg\" alt=\"SAS\/STAT Categorical Data Analysis Procedure\" width=\"628\" height=\"457\" srcset=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2018\/04\/proc-probit-output-1.jpg 628w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2018\/04\/proc-probit-output-1-150x109.jpg 150w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2018\/04\/proc-probit-output-1-300x218.jpg 300w\" sizes=\"auto, (max-width: 628px) 100vw, 628px\" \/><\/a><p id=\"caption-attachment-13506\" class=\"wp-caption-text\">SAS\/STAT Categorical Data\u00a0Analysis &#8211; SAS PROC PROBIT<\/p><\/div>\n<div id=\"attachment_13507\" style=\"width: 765px\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2018\/04\/proc-probit-output-2.jpg\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-13507\" class=\"wp-image-13507 size-full\" src=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2018\/04\/proc-probit-output-2.jpg\" alt=\"SAS\/STAT Categorical Data\u00a0Analysis - SAS PROC PROBIT\" width=\"755\" height=\"303\" srcset=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2018\/04\/proc-probit-output-2.jpg 755w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2018\/04\/proc-probit-output-2-150x60.jpg 150w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2018\/04\/proc-probit-output-2-300x120.jpg 300w\" sizes=\"auto, (max-width: 755px) 100vw, 755px\" \/><\/a><p id=\"caption-attachment-13507\" class=\"wp-caption-text\">SAS\/STAT Categorical Data\u00a0Analysis &#8211; SAS PROC PROBIT<\/p><\/div>\n<div id=\"attachment_13508\" style=\"width: 665px\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2018\/04\/proc-probit-output-3.jpg\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-13508\" class=\"wp-image-13508 size-full\" src=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2018\/04\/proc-probit-output-3.jpg\" alt=\"SAS\/STAT Categorical Data\u00a0Analysis - SAS PROC PROBIT\" width=\"655\" height=\"502\" srcset=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2018\/04\/proc-probit-output-3.jpg 655w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2018\/04\/proc-probit-output-3-150x115.jpg 150w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2018\/04\/proc-probit-output-3-300x230.jpg 300w\" sizes=\"auto, (max-width: 655px) 100vw, 655px\" \/><\/a><p id=\"caption-attachment-13508\" class=\"wp-caption-text\">SAS\/STAT Categorical Data\u00a0Analysis &#8211; SAS PROC PROBIT<\/p><\/div>\n<div id=\"attachment_13509\" style=\"width: 673px\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2018\/04\/proc-probit-output-4.jpg\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-13509\" class=\"wp-image-13509 size-full\" src=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2018\/04\/proc-probit-output-4.jpg\" alt=\"SAS\/STAT Categorical Data Analysis Procedure\" width=\"663\" height=\"496\" srcset=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2018\/04\/proc-probit-output-4.jpg 663w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2018\/04\/proc-probit-output-4-150x112.jpg 150w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2018\/04\/proc-probit-output-4-300x224.jpg 300w\" sizes=\"auto, (max-width: 663px) 100vw, 663px\" \/><\/a><p id=\"caption-attachment-13509\" class=\"wp-caption-text\">SAS\/STAT Categorical Data\u00a0Analysis &#8211; SAS PROC PROBIT<\/p><\/div>\n<div id=\"attachment_13510\" style=\"width: 658px\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2018\/04\/proc-probit-6.jpg\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-13510\" class=\"wp-image-13510 size-full\" src=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2018\/04\/proc-probit-6.jpg\" alt=\"SAS\/STAT Categorical Data Analysis Procedure\" width=\"648\" height=\"492\" srcset=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2018\/04\/proc-probit-6.jpg 648w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2018\/04\/proc-probit-6-150x114.jpg 150w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2018\/04\/proc-probit-6-300x228.jpg 300w\" sizes=\"auto, (max-width: 648px) 100vw, 648px\" \/><\/a><p id=\"caption-attachment-13510\" class=\"wp-caption-text\">SAS\/STAT Categorical Data\u00a0Analysis &#8211; SAS PROC PROBIT<\/p><\/div>\n<h4>c. SAS PROC GENMOD<\/h4>\n<p>The PROC GENMOD provides Bayesian analysis for distributions like binomial, gamma, Gaussian, normal and Poisson. It also provides Bayesian analysis for links like identity, log, logit, probit etc. In a Bayesian analysis, the model parameters are treated as random variables, and inference about parameters is based on the posterior distribution of the parameters, given the data.<\/p>\n<p>We already discussed it in the last <a href=\"https:\/\/data-flair.training\/blogs\/stat-bayesian-analysis\/\"><strong>SAS\/STAT Bayesian Analysis tutorial<\/strong><\/a>. You can refer to the same.<\/p>\n<h4>d. SAS PROC CATMOD<\/h4>\n<p>The PROC CATMOD procedure in SAS\/STAT performs modeling of categorical data that can be represented by a contingency table. PROC CATMOD specializes in WLS modeling and analysis of a wide range of models. SAS PROC CATMOD fits linear models to functions of response frequencies.<\/p>\n<p>We already discussed it in the last <a href=\"https:\/\/data-flair.training\/blogs\/sas-stat-anova\/\"><strong>SAS\/STAT Analysis of Variance tutorial<\/strong><\/a>. You can refer to the same.<\/p>\n<h4>e. SAS PROC FMM<\/h4>\n<p>The PROC FMM procedure in SAS\/STAT fits statistical models to data for which the distribution of the response is a finite mixture of distributions\u2014that is, each response is drawn with unknown probability from one of several distributions. We already discussed it in the last SAS\/STAT Bayesian Analysis tutorial. You can refer to the same.<br \/>\n<strong><a href=\"https:\/\/data-flair.training\/blogs\/sas-bland-altman-plot\/\">Let&#8217;s Look At SAS Bland-Altman Analysis or Plot<\/a><\/strong><\/p>\n<h4>f. SAS PROC FREQ<\/h4>\n<p>The SAS PROC FREQ procedure prints all values of a given categorical variable in the Output window, along with the number and percentage of times each value appears. The FREQ procedure can work with both string\u00a0(character) and numeric\u00a0categorical variables.<br \/>\nWe have already discussed this procedure in detail. You can refer to the <strong><a href=\"https:\/\/data-flair.training\/blogs\/sas-frequency-distribution\/\">following link <\/a><\/strong>for the complete tutorial.<br \/>\nThis was all\u00a0about SAS\/STAT Categorical Data Analysis Procedure Tutorial. Hope you like our explanation.<\/p>\n<h3>Conclusion<\/h3>\n<p>Hence, this was a complete description and a comprehensive understanding of all the SAS\/STAT Categorical Data Analysis Procedure. We looked at each of them: SAS PROC LOGISTIC, SAS PROC PROBIT, SAS PROC GENMOD, SAS PROC CATMOD, SAS PROC FMM, and SAS PROC FREQ with their syntax, and how they can be used.<\/p>\n<p>Hope you all enjoyed it. Stay tuned for more.\u00a0Furthermore, if you have any query, feel free to ask in a comment section.<\/p>\n<p style=\"font-weight: 400\">Related Topic-\u00a0<strong><a href=\"https:\/\/data-flair.training\/blogs\/sas-interview-questions\/\">Top 30 SAS Interview Questions and Answers<\/a><\/strong><\/p>\n<p style=\"font-weight: 400\"><strong><a href=\"https:\/\/support.sas.com\/rnd\/app\/stat\/procedures\/CategoricalDataAnalysis.html\">For reference\u00a0<\/a><\/strong><\/p>\n<p><span hidden class=\"__iawmlf-post-loop-links\" data-iawmlf-links=\"[{&quot;id&quot;:1981,&quot;href&quot;:&quot;https:\\\/\\\/support.sas.com\\\/rnd\\\/app\\\/stat\\\/procedures\\\/CategoricalDataAnalysis.html&quot;,&quot;archived_href&quot;:&quot;http:\\\/\\\/web-wp.archive.org\\\/web\\\/20230130115842\\\/http:\\\/\\\/support.sas.com\\\/rnd\\\/app\\\/stat\\\/procedures\\\/CategoricalDataAnalysis.html&quot;,&quot;redirect_href&quot;:&quot;&quot;,&quot;checks&quot;:[{&quot;date&quot;:&quot;2025-12-10 15:09:54&quot;,&quot;http_code&quot;:404},{&quot;date&quot;:&quot;2025-12-23 06:30:57&quot;,&quot;http_code&quot;:404},{&quot;date&quot;:&quot;2026-01-13 16:35:53&quot;,&quot;http_code&quot;:404},{&quot;date&quot;:&quot;2026-01-21 19:54:14&quot;,&quot;http_code&quot;:404},{&quot;date&quot;:&quot;2026-02-03 08:08:18&quot;,&quot;http_code&quot;:404},{&quot;date&quot;:&quot;2026-02-11 14:39:51&quot;,&quot;http_code&quot;:404},{&quot;date&quot;:&quot;2026-04-19 17:46:26&quot;,&quot;http_code&quot;:404},{&quot;date&quot;:&quot;2026-05-24 08:12:04&quot;,&quot;http_code&quot;:404},{&quot;date&quot;:&quot;2026-06-09 22:16:07&quot;,&quot;http_code&quot;:404}],&quot;broken&quot;:true,&quot;last_checked&quot;:{&quot;date&quot;:&quot;2026-06-09 22:16:07&quot;,&quot;http_code&quot;:404},&quot;process&quot;:&quot;done&quot;}]\"><\/span><\/p>\n","protected":false},"excerpt":{"rendered":"<p>In our SAS\/STAT Software Tutorial, we looked at Bayesian analysis and the procedures used for performing it. Today, we will be looking at SAS\/STAT Categorical Data Analysis and how it is used in SAS\/STAT&#46;&#46;&#46;<\/p>\n","protected":false},"author":6,"featured_media":13501,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[56],"tags":[687,12133,12145,12148,12150,12164,12165,12182,12183],"class_list":["post-13483","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-sas-stat","tag-analyze-categorical-variables","tag-sas-proc-catmod","tag-sas-proc-fmm","tag-sas-proc-freq","tag-sas-proc-genmod","tag-sas-proc-logistic-example","tag-sas-proc-logistic-syntax","tag-sas-proc-probit-example","tag-sas-proc-probit-syntax"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.8 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>SAS\/STAT Categorical Data Analysis Procedure - DataFlair<\/title>\n<meta name=\"description\" content=\"SAS\/STAT Categorical Data Analysis Procedure- SAS PROC LOGISTIC, SAS PROC PROBIT, SAS PROC GENMOD,SAS PROC CATMOD,SAS PROC FMM, &amp; PROC FREQ with syntax &amp; Example\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/data-flair.training\/blogs\/categorical-data-analysis\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"SAS\/STAT Categorical Data Analysis Procedure - DataFlair\" \/>\n<meta property=\"og:description\" content=\"SAS\/STAT Categorical Data Analysis Procedure- SAS PROC LOGISTIC, SAS PROC PROBIT, SAS PROC GENMOD,SAS PROC CATMOD,SAS PROC FMM, &amp; PROC FREQ with syntax &amp; Example\" \/>\n<meta property=\"og:url\" content=\"https:\/\/data-flair.training\/blogs\/categorical-data-analysis\/\" \/>\n<meta property=\"og:site_name\" content=\"DataFlair\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/DataFlairWS\/\" \/>\n<meta property=\"article:published_time\" content=\"2018-04-16T06:46:42+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2021-12-03T05:05:35+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2018\/04\/SAS-STAT-categorical-data-analysis-01.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"1200\" \/>\n\t<meta property=\"og:image:height\" content=\"628\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"DataFlair Team\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@DataFlairWS\" \/>\n<meta name=\"twitter:site\" content=\"@DataFlairWS\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"DataFlair Team\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"7 minutes\" \/>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"SAS\/STAT Categorical Data Analysis Procedure - DataFlair","description":"SAS\/STAT Categorical Data Analysis Procedure- SAS PROC LOGISTIC, SAS PROC PROBIT, SAS PROC GENMOD,SAS PROC CATMOD,SAS PROC FMM, & PROC FREQ with syntax & Example","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/data-flair.training\/blogs\/categorical-data-analysis\/","og_locale":"en_US","og_type":"article","og_title":"SAS\/STAT Categorical Data Analysis Procedure - DataFlair","og_description":"SAS\/STAT Categorical Data Analysis Procedure- SAS PROC LOGISTIC, SAS PROC PROBIT, SAS PROC GENMOD,SAS PROC CATMOD,SAS PROC FMM, & PROC FREQ with syntax & Example","og_url":"https:\/\/data-flair.training\/blogs\/categorical-data-analysis\/","og_site_name":"DataFlair","article_publisher":"https:\/\/www.facebook.com\/DataFlairWS\/","article_published_time":"2018-04-16T06:46:42+00:00","article_modified_time":"2021-12-03T05:05:35+00:00","og_image":[{"width":1200,"height":628,"url":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2018\/04\/SAS-STAT-categorical-data-analysis-01.jpg","type":"image\/jpeg"}],"author":"DataFlair Team","twitter_card":"summary_large_image","twitter_creator":"@DataFlairWS","twitter_site":"@DataFlairWS","twitter_misc":{"Written by":"DataFlair Team","Est. reading time":"7 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/data-flair.training\/blogs\/categorical-data-analysis\/#article","isPartOf":{"@id":"https:\/\/data-flair.training\/blogs\/categorical-data-analysis\/"},"author":{"name":"DataFlair Team","@id":"https:\/\/data-flair.training\/blogs\/#\/schema\/person\/2c58ecb4f73a39f0ef993f1ddfcd7b89"},"headline":"SAS\/STAT Categorical Data Analysis Procedure","datePublished":"2018-04-16T06:46:42+00:00","dateModified":"2021-12-03T05:05:35+00:00","mainEntityOfPage":{"@id":"https:\/\/data-flair.training\/blogs\/categorical-data-analysis\/"},"wordCount":1184,"commentCount":0,"publisher":{"@id":"https:\/\/data-flair.training\/blogs\/#organization"},"image":{"@id":"https:\/\/data-flair.training\/blogs\/categorical-data-analysis\/#primaryimage"},"thumbnailUrl":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2018\/04\/SAS-STAT-categorical-data-analysis-01.jpg","keywords":["analyze categorical variables","SAS PROC CATMOD","SAS PROC FMM","SAS PROC FREQ","SAS PROC GENMOD","SAS PROC LOGISTIC example","SAS PROC LOGISTIC syntax","SAS PROC PROBIT example","SAS PROC PROBIT Syntax"],"articleSection":["SAS - STAT Tutorials"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/data-flair.training\/blogs\/categorical-data-analysis\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/data-flair.training\/blogs\/categorical-data-analysis\/","url":"https:\/\/data-flair.training\/blogs\/categorical-data-analysis\/","name":"SAS\/STAT Categorical Data Analysis Procedure - DataFlair","isPartOf":{"@id":"https:\/\/data-flair.training\/blogs\/#website"},"primaryImageOfPage":{"@id":"https:\/\/data-flair.training\/blogs\/categorical-data-analysis\/#primaryimage"},"image":{"@id":"https:\/\/data-flair.training\/blogs\/categorical-data-analysis\/#primaryimage"},"thumbnailUrl":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2018\/04\/SAS-STAT-categorical-data-analysis-01.jpg","datePublished":"2018-04-16T06:46:42+00:00","dateModified":"2021-12-03T05:05:35+00:00","description":"SAS\/STAT Categorical Data Analysis Procedure- SAS PROC LOGISTIC, SAS PROC PROBIT, SAS PROC GENMOD,SAS PROC CATMOD,SAS PROC FMM, & PROC FREQ with syntax & Example","breadcrumb":{"@id":"https:\/\/data-flair.training\/blogs\/categorical-data-analysis\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/data-flair.training\/blogs\/categorical-data-analysis\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/data-flair.training\/blogs\/categorical-data-analysis\/#primaryimage","url":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2018\/04\/SAS-STAT-categorical-data-analysis-01.jpg","contentUrl":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2018\/04\/SAS-STAT-categorical-data-analysis-01.jpg","width":1200,"height":628,"caption":"SAS\/STAT Categorical Data Analysis Procedure"},{"@type":"BreadcrumbList","@id":"https:\/\/data-flair.training\/blogs\/categorical-data-analysis\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Blog Home","item":"https:\/\/data-flair.training\/blogs\/"},{"@type":"ListItem","position":2,"name":"Important features of java","item":"https:\/\/data-flair.training\/blogs\/tag\/important-features-of-java\/"},{"@type":"ListItem","position":3,"name":"SAS\/STAT Categorical Data Analysis Procedure"}]},{"@type":"WebSite","@id":"https:\/\/data-flair.training\/blogs\/#website","url":"https:\/\/data-flair.training\/blogs\/","name":"DataFlair","description":"Learn Today. Lead Tomorrow.","publisher":{"@id":"https:\/\/data-flair.training\/blogs\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/data-flair.training\/blogs\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/data-flair.training\/blogs\/#organization","name":"DataFlair","url":"https:\/\/data-flair.training\/blogs\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/data-flair.training\/blogs\/#\/schema\/logo\/image\/","url":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2016\/07\/Data-Flair.png","contentUrl":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2016\/07\/Data-Flair.png","width":106,"height":48,"caption":"DataFlair"},"image":{"@id":"https:\/\/data-flair.training\/blogs\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/DataFlairWS\/","https:\/\/x.com\/DataFlairWS","https:\/\/www.linkedin.com\/company\/dataflair-web-services-pvt-ltd\/","https:\/\/www.youtube.com\/user\/DataFlairWS"]},{"@type":"Person","@id":"https:\/\/data-flair.training\/blogs\/#\/schema\/person\/2c58ecb4f73a39f0ef993f1ddfcd7b89","name":"DataFlair Team","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/1ce4a0e3e542444fc73bbebf83e89e8b73e2d95ccb1fcee64da9945f078b97c5?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/1ce4a0e3e542444fc73bbebf83e89e8b73e2d95ccb1fcee64da9945f078b97c5?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/1ce4a0e3e542444fc73bbebf83e89e8b73e2d95ccb1fcee64da9945f078b97c5?s=96&d=mm&r=g","caption":"DataFlair Team"},"description":"The DataFlair Team provides industry-driven content on programming, Java, Python, C++, DSA, AI, ML, data Science, Android, Flutter, MERN, Web Development, and technology. Our expert educators focus on delivering value-packed, easy-to-follow resources for tech enthusiasts and professionals.","url":"https:\/\/data-flair.training\/blogs\/author\/dfteam2\/"}]}},"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/posts\/13483","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/users\/6"}],"replies":[{"embeddable":true,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/comments?post=13483"}],"version-history":[{"count":6,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/posts\/13483\/revisions"}],"predecessor-version":[{"id":104688,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/posts\/13483\/revisions\/104688"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/media\/13501"}],"wp:attachment":[{"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/media?parent=13483"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/categories?post=13483"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/tags?post=13483"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}