{"id":3148,"date":"2023-02-09T12:19:03","date_gmt":"2023-02-09T11:19:03","guid":{"rendered":"https:\/\/www.microdata.no\/?p=3148"},"modified":"2023-02-09T12:19:04","modified_gmt":"2023-02-09T11:19:04","slug":"graphical-display-of-coefficient-estimates-is-now-possible","status":"publish","type":"post","link":"https:\/\/www.microdata.no\/en\/graphical-display-of-coefficient-estimates-is-now-possible\/","title":{"rendered":"Graphical display of coefficient estimates is now possible"},"content":{"rendered":"\n<p><strong><em>It is now possible to create graphical displays of coefficient estimates through the use of the new coefplot command.<\/em><\/strong><\/p>\n\n\n\n<!--more-->\n\n\n\n<p>Running the various regression commands (<code>regress<\/code>, <code>logit<\/code>, <code>probit<\/code>, <code>mlogit<\/code> etc.) by default generates a table with model and coefficient estimates. With many variables or factor terms in a regression model, it can be demanding to go through lists of coefficient estimates. We therefore introduce a solution where you can display the coefficient estimates graphically through a standard coefficient plot, the <code>coefplot<\/code> command.<\/p>\n\n\n\n<p>The new <code>coefplot<\/code> command takes full regression models as arguments, including options. The graphical display will therefore reflect the various options that have been chosen for a regression model. E.g. if you use the <code>level()<\/code> option to adjust the significance level (default is 5%), you will see that the confidence intervals will adjust accordingly.<\/p>\n\n\n\n<p>Examples of command syntax:<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li><code>coefplot regress salary age male wealth, standardize<\/code><\/li><li><code>coefplot regress salary i.age male high_edu high_wealth if inrange(age, 20, 40)<\/code><\/li><li><code>coefplot ivregress salary male (wealth = age)<\/code><\/li><li><code>coefplot logit high_salary i.age male high_wealth<\/code><\/li><li><code>coefplot mlogit wage_cat age male high_wealth, level(99)<\/code><\/li><\/ul>\n\n\n\n<p>Coefficient plots show the estimated coefficient values \u200b\u200bwith associated confidence intervals, which result from running the specific regression model. Values\/confidence intervals are colored based on whether the estimate is significant or not, so that this becomes easier to see.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"881\" height=\"359\" src=\"https:\/\/www.microdata.no\/wp-content\/uploads\/2023\/02\/image.png\" alt=\"\" class=\"wp-image-3139\" srcset=\"https:\/\/www.microdata.no\/wp-content\/uploads\/2023\/02\/image.png 881w, https:\/\/www.microdata.no\/wp-content\/uploads\/2023\/02\/image-300x122.png 300w, https:\/\/www.microdata.no\/wp-content\/uploads\/2023\/02\/image-768x313.png 768w\" sizes=\"auto, (max-width: 881px) 100vw, 881px\" \/><\/figure>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"894\" height=\"381\" src=\"https:\/\/www.microdata.no\/wp-content\/uploads\/2023\/02\/image-1.png\" alt=\"\" class=\"wp-image-3141\" srcset=\"https:\/\/www.microdata.no\/wp-content\/uploads\/2023\/02\/image-1.png 894w, https:\/\/www.microdata.no\/wp-content\/uploads\/2023\/02\/image-1-300x128.png 300w, https:\/\/www.microdata.no\/wp-content\/uploads\/2023\/02\/image-1-768x327.png 768w\" sizes=\"auto, (max-width: 894px) 100vw, 894px\" \/><\/figure>\n\n\n\n<figure class=\"wp-block-image size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.microdata.no\/wp-content\/uploads\/2023\/02\/image-2.png\" alt=\"\" class=\"wp-image-3143\" width=\"391\" height=\"753\" srcset=\"https:\/\/www.microdata.no\/wp-content\/uploads\/2023\/02\/image-2.png 521w, https:\/\/www.microdata.no\/wp-content\/uploads\/2023\/02\/image-2-156x300.png 156w\" sizes=\"auto, (max-width: 391px) 100vw, 391px\" \/><\/figure>\n\n\n\n<p>Since <code>coefplot<\/code> only reports the coefficient estimates and associated confidence intervals, it is recommended to run the regression command in combination with coefficient plot. Then you get all the numbers you need. For example:<\/p>\n\n\n<div id=\"rose-block_63e4d404d1170\" class=\"rose-code codeblock-wrapper\">\n<pre tabindex=\"0\" class=\"codeblock\"><code>regress salary i.age male high_edu oslo\r\ncoefplot regress salary i.age male high_edu oslo\r\n<\/code><\/pre>\n<\/div>","protected":false},"excerpt":{"rendered":"<p>It is now possible to create graphical displays of coefficient estimates through the use of the new coefplot command.<\/p>\n","protected":false},"author":4,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"inline_featured_image":false,"_kad_blocks_custom_css":"","_kad_blocks_head_custom_js":"","_kad_blocks_body_custom_js":"","_kad_blocks_footer_custom_js":"","_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":"","footnotes":""},"categories":[2],"tags":[],"class_list":["post-3148","post","type-post","status-publish","format-standard","hentry","category-news"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.4 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Graphical display of coefficient estimates is now possible - microdata.no<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.microdata.no\/en\/graphical-display-of-coefficient-estimates-is-now-possible\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Graphical display of coefficient estimates is now possible - microdata.no\" \/>\n<meta property=\"og:description\" content=\"It is now possible to create graphical displays of coefficient estimates through the use of the new coefplot command.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.microdata.no\/en\/graphical-display-of-coefficient-estimates-is-now-possible\/\" \/>\n<meta property=\"og:site_name\" content=\"microdata.no\" \/>\n<meta property=\"article:published_time\" content=\"2023-02-09T11:19:03+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2023-02-09T11:19:04+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.microdata.no\/wp-content\/uploads\/2023\/02\/image.png\" \/>\n<meta name=\"author\" content=\"Trond Pedersen\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Trond Pedersen\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.microdata.no\\\/en\\\/graphical-display-of-coefficient-estimates-is-now-possible\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.microdata.no\\\/en\\\/graphical-display-of-coefficient-estimates-is-now-possible\\\/\"},\"author\":{\"name\":\"Trond Pedersen\",\"@id\":\"https:\\\/\\\/www.microdata.no\\\/#\\\/schema\\\/person\\\/76761ddfe0d06e3f08f5491a9faeab92\"},\"headline\":\"Graphical display of coefficient estimates is now possible\",\"datePublished\":\"2023-02-09T11:19:03+00:00\",\"dateModified\":\"2023-02-09T11:19:04+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.microdata.no\\\/en\\\/graphical-display-of-coefficient-estimates-is-now-possible\\\/\"},\"wordCount\":213,\"image\":{\"@id\":\"https:\\\/\\\/www.microdata.no\\\/en\\\/graphical-display-of-coefficient-estimates-is-now-possible\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.microdata.no\\\/wp-content\\\/uploads\\\/2023\\\/02\\\/image.png\",\"articleSection\":[\"News\"],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.microdata.no\\\/en\\\/graphical-display-of-coefficient-estimates-is-now-possible\\\/\",\"url\":\"https:\\\/\\\/www.microdata.no\\\/en\\\/graphical-display-of-coefficient-estimates-is-now-possible\\\/\",\"name\":\"Graphical display of coefficient estimates is now possible - microdata.no\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.microdata.no\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.microdata.no\\\/en\\\/graphical-display-of-coefficient-estimates-is-now-possible\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.microdata.no\\\/en\\\/graphical-display-of-coefficient-estimates-is-now-possible\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.microdata.no\\\/wp-content\\\/uploads\\\/2023\\\/02\\\/image.png\",\"datePublished\":\"2023-02-09T11:19:03+00:00\",\"dateModified\":\"2023-02-09T11:19:04+00:00\",\"author\":{\"@id\":\"https:\\\/\\\/www.microdata.no\\\/#\\\/schema\\\/person\\\/76761ddfe0d06e3f08f5491a9faeab92\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.microdata.no\\\/en\\\/graphical-display-of-coefficient-estimates-is-now-possible\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.microdata.no\\\/en\\\/graphical-display-of-coefficient-estimates-is-now-possible\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.microdata.no\\\/en\\\/graphical-display-of-coefficient-estimates-is-now-possible\\\/#primaryimage\",\"url\":\"https:\\\/\\\/www.microdata.no\\\/wp-content\\\/uploads\\\/2023\\\/02\\\/image.png\",\"contentUrl\":\"https:\\\/\\\/www.microdata.no\\\/wp-content\\\/uploads\\\/2023\\\/02\\\/image.png\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.microdata.no\\\/en\\\/graphical-display-of-coefficient-estimates-is-now-possible\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Hjem\",\"item\":\"https:\\\/\\\/www.microdata.no\\\/en\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Graphical display of coefficient estimates is now possible\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.microdata.no\\\/#website\",\"url\":\"https:\\\/\\\/www.microdata.no\\\/\",\"name\":\"microdata.no\",\"description\":\"Gj\u00f8r det enklere \u00e5 analysere registerdata\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.microdata.no\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.microdata.no\\\/#\\\/schema\\\/person\\\/76761ddfe0d06e3f08f5491a9faeab92\",\"name\":\"Trond Pedersen\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/b90e3f42c839e825d86949fc2f9a318f2a81da5f9e6b1431ff4d872333d4e717?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/b90e3f42c839e825d86949fc2f9a318f2a81da5f9e6b1431ff4d872333d4e717?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/b90e3f42c839e825d86949fc2f9a318f2a81da5f9e6b1431ff4d872333d4e717?s=96&d=mm&r=g\",\"caption\":\"Trond Pedersen\"},\"url\":\"https:\\\/\\\/www.microdata.no\\\/en\\\/author\\\/trond\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Graphical display of coefficient estimates is now possible - microdata.no","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:\/\/www.microdata.no\/en\/graphical-display-of-coefficient-estimates-is-now-possible\/","og_locale":"en_US","og_type":"article","og_title":"Graphical display of coefficient estimates is now possible - microdata.no","og_description":"It is now possible to create graphical displays of coefficient estimates through the use of the new coefplot command.","og_url":"https:\/\/www.microdata.no\/en\/graphical-display-of-coefficient-estimates-is-now-possible\/","og_site_name":"microdata.no","article_published_time":"2023-02-09T11:19:03+00:00","article_modified_time":"2023-02-09T11:19:04+00:00","og_image":[{"url":"https:\/\/www.microdata.no\/wp-content\/uploads\/2023\/02\/image.png","type":"","width":"","height":""}],"author":"Trond Pedersen","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Trond Pedersen","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.microdata.no\/en\/graphical-display-of-coefficient-estimates-is-now-possible\/#article","isPartOf":{"@id":"https:\/\/www.microdata.no\/en\/graphical-display-of-coefficient-estimates-is-now-possible\/"},"author":{"name":"Trond Pedersen","@id":"https:\/\/www.microdata.no\/#\/schema\/person\/76761ddfe0d06e3f08f5491a9faeab92"},"headline":"Graphical display of coefficient estimates is now possible","datePublished":"2023-02-09T11:19:03+00:00","dateModified":"2023-02-09T11:19:04+00:00","mainEntityOfPage":{"@id":"https:\/\/www.microdata.no\/en\/graphical-display-of-coefficient-estimates-is-now-possible\/"},"wordCount":213,"image":{"@id":"https:\/\/www.microdata.no\/en\/graphical-display-of-coefficient-estimates-is-now-possible\/#primaryimage"},"thumbnailUrl":"https:\/\/www.microdata.no\/wp-content\/uploads\/2023\/02\/image.png","articleSection":["News"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/www.microdata.no\/en\/graphical-display-of-coefficient-estimates-is-now-possible\/","url":"https:\/\/www.microdata.no\/en\/graphical-display-of-coefficient-estimates-is-now-possible\/","name":"Graphical display of coefficient estimates is now possible - microdata.no","isPartOf":{"@id":"https:\/\/www.microdata.no\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.microdata.no\/en\/graphical-display-of-coefficient-estimates-is-now-possible\/#primaryimage"},"image":{"@id":"https:\/\/www.microdata.no\/en\/graphical-display-of-coefficient-estimates-is-now-possible\/#primaryimage"},"thumbnailUrl":"https:\/\/www.microdata.no\/wp-content\/uploads\/2023\/02\/image.png","datePublished":"2023-02-09T11:19:03+00:00","dateModified":"2023-02-09T11:19:04+00:00","author":{"@id":"https:\/\/www.microdata.no\/#\/schema\/person\/76761ddfe0d06e3f08f5491a9faeab92"},"breadcrumb":{"@id":"https:\/\/www.microdata.no\/en\/graphical-display-of-coefficient-estimates-is-now-possible\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.microdata.no\/en\/graphical-display-of-coefficient-estimates-is-now-possible\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.microdata.no\/en\/graphical-display-of-coefficient-estimates-is-now-possible\/#primaryimage","url":"https:\/\/www.microdata.no\/wp-content\/uploads\/2023\/02\/image.png","contentUrl":"https:\/\/www.microdata.no\/wp-content\/uploads\/2023\/02\/image.png"},{"@type":"BreadcrumbList","@id":"https:\/\/www.microdata.no\/en\/graphical-display-of-coefficient-estimates-is-now-possible\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Hjem","item":"https:\/\/www.microdata.no\/en\/"},{"@type":"ListItem","position":2,"name":"Graphical display of coefficient estimates is now possible"}]},{"@type":"WebSite","@id":"https:\/\/www.microdata.no\/#website","url":"https:\/\/www.microdata.no\/","name":"microdata.no","description":"Gj\u00f8r det enklere \u00e5 analysere registerdata","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.microdata.no\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/www.microdata.no\/#\/schema\/person\/76761ddfe0d06e3f08f5491a9faeab92","name":"Trond Pedersen","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/b90e3f42c839e825d86949fc2f9a318f2a81da5f9e6b1431ff4d872333d4e717?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/b90e3f42c839e825d86949fc2f9a318f2a81da5f9e6b1431ff4d872333d4e717?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/b90e3f42c839e825d86949fc2f9a318f2a81da5f9e6b1431ff4d872333d4e717?s=96&d=mm&r=g","caption":"Trond Pedersen"},"url":"https:\/\/www.microdata.no\/en\/author\/trond\/"}]}},"taxonomy_info":{"category":[{"value":2,"label":"News"}]},"featured_image_src_large":false,"author_info":{"display_name":"Trond Pedersen","author_link":"https:\/\/www.microdata.no\/en\/author\/trond\/"},"comment_info":0,"category_info":[{"term_id":2,"name":"News","slug":"news","term_group":0,"term_taxonomy_id":2,"taxonomy":"category","description":"","parent":0,"count":79,"filter":"raw","cat_ID":2,"category_count":79,"category_description":"","cat_name":"News","category_nicename":"news","category_parent":0}],"tag_info":false,"_links":{"self":[{"href":"https:\/\/www.microdata.no\/en\/wp-json\/wp\/v2\/posts\/3148","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.microdata.no\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.microdata.no\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.microdata.no\/en\/wp-json\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/www.microdata.no\/en\/wp-json\/wp\/v2\/comments?post=3148"}],"version-history":[{"count":6,"href":"https:\/\/www.microdata.no\/en\/wp-json\/wp\/v2\/posts\/3148\/revisions"}],"predecessor-version":[{"id":3155,"href":"https:\/\/www.microdata.no\/en\/wp-json\/wp\/v2\/posts\/3148\/revisions\/3155"}],"wp:attachment":[{"href":"https:\/\/www.microdata.no\/en\/wp-json\/wp\/v2\/media?parent=3148"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.microdata.no\/en\/wp-json\/wp\/v2\/categories?post=3148"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.microdata.no\/en\/wp-json\/wp\/v2\/tags?post=3148"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}