{"id":4391,"date":"2014-11-19T21:17:32","date_gmt":"2014-11-20T02:17:32","guid":{"rendered":"http:\/\/www.thejuliagroup.com\/blog\/?p=4391"},"modified":"2014-11-19T21:17:32","modified_gmt":"2014-11-20T02:17:32","slug":"the-most-common-error-new-sas-users-make","status":"publish","type":"post","link":"https:\/\/www.thejuliagroup.com\/blog\/the-most-common-error-new-sas-users-make\/","title":{"rendered":"The most common error new SAS users make"},"content":{"rendered":"<p>Any time you learn anything new it can be intimidating. That is true of programming as well as anything else. It may be even more true of using statistical software because you combine the uneasiness many people have about learning statistics with learning a new language.<\/p>\n<p>To a statistician, this error message makes perfect sense:<\/p>\n<p><strong><span style=\"color: #ff0000;\"><code>ERROR: Variable BP_Status in list does not match type prescribed for this list.<\/code><\/span><\/strong><\/p>\n<p>but to someone new to both statistics and SAS it may be clear as mud.<\/p>\n<p>Here is your problem.<\/p>\n<p>The procedure you are using, PROC UNIVARIATE , PROC MEANS is designed ONLY for numeric variables. You have tried to use it for a categorical variable.<\/p>\n<p>This error means you\u2019ve used a categorical variable in a list where only numeric variables are expected. For example, bp_status is \u201cHigh\u201d, \u201cNormal\u201d and \u201cOptimal\u201d<\/p>\n<p>You cannot find the mean or standard deviation of words, so your procedure has an error.<\/p>\n<p>So &#8230; what do you do if you need descriptive statistics?<\/p>\n<p>Go back to your PROC UNIVARIATE or PROC MEANS and delete the offending variables. Re-run it with only numeric variables.<\/p>\n<p>For your categorical variables, use a PROC FREQ \u00a0for a frequency distribution \u00a0and\/ or PROC GCHART.<\/p>\n<p>Problem solved.<\/p>\n<p>You&#8217;re welcome.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Any time you learn anything new it can be intimidating. That is true of programming as well as anything else. It may be even more true of using statistical software because you combine the uneasiness many people have about learning statistics with learning a new language. To a statistician, this error message makes perfect sense:&#8230;<\/p>\n","protected":false},"author":5,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_kad_post_transparent":"","_kad_post_title":"","_kad_post_layout":"","_kad_post_sidebar_id":"","_kad_post_content_style":"","_kad_post_vertical_padding":"","_kad_post_feature":"","_kad_post_feature_position":"","_kad_post_header":false,"_kad_post_footer":false,"_kad_post_classname":"","_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[9,11,8],"tags":[],"class_list":["post-4391","post","type-post","status-publish","format-standard","hentry","category-software","category-statistics","category-technology"],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/www.thejuliagroup.com\/blog\/wp-json\/wp\/v2\/posts\/4391","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.thejuliagroup.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.thejuliagroup.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.thejuliagroup.com\/blog\/wp-json\/wp\/v2\/users\/5"}],"replies":[{"embeddable":true,"href":"https:\/\/www.thejuliagroup.com\/blog\/wp-json\/wp\/v2\/comments?post=4391"}],"version-history":[{"count":2,"href":"https:\/\/www.thejuliagroup.com\/blog\/wp-json\/wp\/v2\/posts\/4391\/revisions"}],"predecessor-version":[{"id":4393,"href":"https:\/\/www.thejuliagroup.com\/blog\/wp-json\/wp\/v2\/posts\/4391\/revisions\/4393"}],"wp:attachment":[{"href":"https:\/\/www.thejuliagroup.com\/blog\/wp-json\/wp\/v2\/media?parent=4391"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.thejuliagroup.com\/blog\/wp-json\/wp\/v2\/categories?post=4391"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.thejuliagroup.com\/blog\/wp-json\/wp\/v2\/tags?post=4391"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}