{"id":2136,"date":"2023-07-23T13:06:58","date_gmt":"2023-07-23T13:06:58","guid":{"rendered":"https:\/\/statorials.org\/de\/bic-nach-r\/"},"modified":"2023-07-23T13:06:58","modified_gmt":"2023-07-23T13:06:58","slug":"bic-nach-r","status":"publish","type":"post","link":"https:\/\/statorials.org\/de\/bic-nach-r\/","title":{"rendered":"So berechnen sie den bic in r"},"content":{"rendered":"<p><\/p>\n<hr>\n<p><span style=\"color: #000000;\">Das <strong>Bayes&#8217;sche Informationskriterium<\/strong> , oft als <strong>BIC<\/strong> abgek\u00fcrzt, ist ein Ma\u00df zum Vergleich der Anpassungsg\u00fcte verschiedener Regressionsmodelle.<\/span><\/p>\n<p> <span style=\"color: #000000;\">In der Praxis passen wir mehrere Regressionsmodelle an denselben Datensatz an und w\u00e4hlen das Modell mit dem niedrigsten BIC-Wert als das Modell aus, das am besten zu den Daten passt.<\/span><\/p>\n<p> <span style=\"color: #000000;\">Zur Berechnung des BIC verwenden wir folgende Formel:<\/span><\/p>\n<p> <span style=\"color: #000000;\"><strong>BIC:<\/strong> (RSS+log(n)d\u03c3\u0302 <sup>2<\/sup> ) \/ n<\/span><\/p>\n<p> <span style=\"color: #000000;\">Gold:<\/span><\/p>\n<ul>\n<li> <span style=\"color: #000000;\"><strong>d:<\/strong> Die Anzahl der Pr\u00e4diktoren<\/span><\/li>\n<li> <span style=\"color: #000000;\"><strong>n:<\/strong> Gesamtbeobachtungen<\/span><\/li>\n<li> <span style=\"color: #000000;\"><strong>\u03c3\u0302:<\/strong> Sch\u00e4tzung der Fehlervarianz, die jedem Antwortma\u00df in einem Regressionsmodell zugeordnet ist<\/span><\/li>\n<li> <span style=\"color: #000000;\"><strong>RSS:<\/strong> Residualsumme der Quadrate aus dem Regressionsmodell<\/span><\/li>\n<li> <span style=\"color: #000000;\"><strong>TSS:<\/strong> Gesamtsumme der Quadrate des Regressionsmodells<\/span><\/li>\n<\/ul>\n<p> <span style=\"color: #000000;\">Das folgende Schritt-f\u00fcr-Schritt-Beispiel zeigt, wie BIC-Werte f\u00fcr Regressionsmodelle in R berechnet werden.<\/span><\/p>\n<h3> <span style=\"color: #000000;\"><strong>Schritt 1: Daten anzeigen<\/strong><\/span><\/h3>\n<p> <span style=\"color: #000000;\">F\u00fcr dieses Beispiel verwenden wir den integrierten <strong>mtcars<\/strong> -Datensatz:<\/span><\/p>\n<pre style=\"background-color: #ececec; font-size: 15px;\"> <strong><span style=\"color: #008080;\">#view first six rows of mtcars dataset\n<span style=\"color: #000000;\">head(mtcars)<\/span>\n<\/span>mpg cyl disp hp drat wt qsec vs am gear carb\nMazda RX4 21.0 6 160 110 3.90 2.620 16.46 0 1 4 4\nMazda RX4 Wag 21.0 6 160 110 3.90 2.875 17.02 0 1 4 4\nDatsun 710 22.8 4 108 93 3.85 2.320 18.61 1 1 4 1\nHornet 4 Drive 21.4 6 258 110 3.08 3.215 19.44 1 0 3 1\nHornet Sportabout 18.7 8 360 175 3.15 3.440 17.02 0 0 3 2\nValiant 18.1 6 225 105 2.76 3,460 20.22 1 0 3 1\n<\/strong><\/pre>\n<h3> <span style=\"color: #000000;\"><strong>Schritt 2: Installieren Sie mehrere Vorlagen<\/strong><\/span><\/h3>\n<p> <span style=\"color: #000000;\">Als N\u00e4chstes werden wir mithilfe dieses Datensatzes verschiedene Regressionsmodelle anpassen:<\/span><\/p>\n<pre style=\"background-color: #ececec; font-size: 15px;\"> <strong><span style=\"color: #008080;\">#fit three different regression models\n<span style=\"color: #000000;\">model1 &lt;- lm(mpg ~ disp + hp, data = mtcars)<\/span>\n<span style=\"color: #000000;\">model2 &lt;- lm(mpg ~ disp + qsec, data = mtcars)<\/span>\n<span style=\"color: #000000;\">model3 &lt;- lm(mpg ~ disp + wt, data = mtcars)<\/span>\n<\/span><\/strong><\/pre>\n<h3> <span style=\"color: #000000;\"><strong>Schritt 3: W\u00e4hlen Sie das Modell mit dem niedrigsten BIC<\/strong><\/span><\/h3>\n<p> <span style=\"color: #000000;\">Um den BIC-Wert f\u00fcr jedes Modell zu berechnen, k\u00f6nnen wir die Funktion <strong>BIC()<\/strong> aus dem <strong>Flexmix-<\/strong> Paket verwenden:<\/span><\/p>\n<pre style=\"background-color: #ececec; font-size: 15px;\"> <strong><span style=\"color: #008080;\"><span style=\"color: #000000;\"><span style=\"color: #ff0000;\">library<\/span> (flexmix)\n\n<span style=\"color: #008080;\">#calculate BIC of model1\n<\/span>BIC(model1)\n\n[1] 174.4815\n\n<span style=\"color: #008080;\">#calculate BIC of model2\n<\/span>BIC(model2)\n\n[1] 177.7048\n\n<span style=\"color: #008080;\">#calculate BIC of model3\n<\/span>BIC(model3)\n\n[1] 170.0307\n<\/span><\/span><\/strong><\/pre>\n<p> <span style=\"color: #000000;\">Wir k\u00f6nnen die BIC-Werte f\u00fcr jedes Modell sehen:<\/span><\/p>\n<ul>\n<li> <span style=\"color: #000000;\">BIC von <strong>Modell 1<\/strong> : 174.4815<\/span><\/li>\n<li> <span style=\"color: #000000;\"><strong>Modell 2<\/strong> BIC: 177.7048<\/span><\/li>\n<li> <span style=\"color: #000000;\"><strong>Modell 3<\/strong> BIC: 170.0307<\/span><\/li>\n<\/ul>\n<p> <span style=\"color: #000000;\">Da Modell 3 den niedrigsten BIC-Wert aufweist, w\u00e4hlen wir es als das Modell aus, das am besten zum Datensatz passt.<\/span><\/p>\n<h3> <span style=\"color: #000000;\"><strong>Zus\u00e4tzliche Ressourcen<\/strong><\/span><\/h3>\n<p> <span style=\"color: #000000;\">In den folgenden Tutorials wird erl\u00e4utert, wie g\u00e4ngige Regressionsmodelle in R angepasst werden:<\/span><\/p>\n<p> <a href=\"https:\/\/statorials.org\/de\/einfache-lineare-regression-in-r\/\" target=\"_blank\" rel=\"noopener\">So f\u00fchren Sie eine einfache lineare Regression in R durch<\/a><br \/> <a href=\"https:\/\/statorials.org\/de\/multiple-lineare-regression-r\/\" target=\"_blank\" rel=\"noopener\">So f\u00fchren Sie eine multiple lineare Regression in R durch<\/a><br \/> So f\u00fchren Sie eine logistische Regression in R durch<br \/> <a href=\"https:\/\/statorials.org\/de\/gewichtete-kleinste-quadrate-in-r\/\" target=\"_blank\" rel=\"noopener\">So f\u00fchren Sie eine gewichtete Regression der kleinsten Quadrate in R durch<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Das Bayes&#8217;sche Informationskriterium , oft als BIC abgek\u00fcrzt, ist ein Ma\u00df zum Vergleich der Anpassungsg\u00fcte verschiedener Regressionsmodelle. In der Praxis passen wir mehrere Regressionsmodelle an denselben Datensatz an und w\u00e4hlen das Modell mit dem niedrigsten BIC-Wert als das Modell aus, das am besten zu den Daten passt. Zur Berechnung des BIC verwenden wir folgende Formel: [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[11],"tags":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v21.5 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>So berechnen Sie den BIC in der R-Statorials<\/title>\n<meta name=\"description\" content=\"In diesem Tutorial wird anhand von Beispielen erl\u00e4utert, wie BIC-Werte f\u00fcr Regressionsmodelle in R berechnet werden.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/statorials.org\/de\/bic-nach-r\/\" \/>\n<meta property=\"og:locale\" content=\"de_DE\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"So berechnen Sie den BIC in der R-Statorials\" \/>\n<meta property=\"og:description\" content=\"In diesem Tutorial wird anhand von Beispielen erl\u00e4utert, wie BIC-Werte f\u00fcr Regressionsmodelle in R berechnet werden.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/statorials.org\/de\/bic-nach-r\/\" \/>\n<meta property=\"og:site_name\" content=\"Statorials\" \/>\n<meta property=\"article:published_time\" content=\"2023-07-23T13:06:58+00:00\" \/>\n<meta name=\"author\" content=\"Dr. Benjamin Anderson\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Verfasst von\" \/>\n\t<meta name=\"twitter:data1\" content=\"Dr. Benjamin Anderson\" \/>\n\t<meta name=\"twitter:label2\" content=\"Gesch\u00e4tzte Lesezeit\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 Minuten\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/statorials.org\/de\/bic-nach-r\/\",\"url\":\"https:\/\/statorials.org\/de\/bic-nach-r\/\",\"name\":\"So berechnen Sie den BIC in der R-Statorials\",\"isPartOf\":{\"@id\":\"https:\/\/statorials.org\/de\/#website\"},\"datePublished\":\"2023-07-23T13:06:58+00:00\",\"dateModified\":\"2023-07-23T13:06:58+00:00\",\"author\":{\"@id\":\"https:\/\/statorials.org\/de\/#\/schema\/person\/ec75c4d6365f2708f8a0ad3a42121aa0\"},\"description\":\"In diesem Tutorial wird anhand von Beispielen erl\u00e4utert, wie BIC-Werte f\u00fcr Regressionsmodelle in R berechnet werden.\",\"breadcrumb\":{\"@id\":\"https:\/\/statorials.org\/de\/bic-nach-r\/#breadcrumb\"},\"inLanguage\":\"de-DE\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/statorials.org\/de\/bic-nach-r\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/statorials.org\/de\/bic-nach-r\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Heim\",\"item\":\"https:\/\/statorials.org\/de\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"So berechnen sie den bic in r\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/statorials.org\/de\/#website\",\"url\":\"https:\/\/statorials.org\/de\/\",\"name\":\"Statorials\",\"description\":\"Ihr Leitfaden f\u00fcr statistische Kompetenz !\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/statorials.org\/de\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"de-DE\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/statorials.org\/de\/#\/schema\/person\/ec75c4d6365f2708f8a0ad3a42121aa0\",\"name\":\"Dr. Benjamin Anderson\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"de-DE\",\"@id\":\"https:\/\/statorials.org\/de\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/statorials.org\/de\/wp-content\/uploads\/2023\/11\/Benjamin-Anderson-96x96.jpg\",\"contentUrl\":\"https:\/\/statorials.org\/de\/wp-content\/uploads\/2023\/11\/Benjamin-Anderson-96x96.jpg\",\"caption\":\"Dr. Benjamin Anderson\"},\"description\":\"Hallo, ich bin Benjamin, ein pensionierter Statistikprofessor, der sich zum engagierten Statorials-Lehrer entwickelt hat. Mit umfassender Erfahrung und Fachwissen auf dem Gebiet der Statistik bin ich bestrebt, mein Wissen zu teilen, um Studenten durch Statorials zu bef\u00e4higen. Mehr wissen\",\"sameAs\":[\"https:\/\/statorials.org\/de\"]}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"So berechnen Sie den BIC in der R-Statorials","description":"In diesem Tutorial wird anhand von Beispielen erl\u00e4utert, wie BIC-Werte f\u00fcr Regressionsmodelle in R berechnet werden.","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:\/\/statorials.org\/de\/bic-nach-r\/","og_locale":"de_DE","og_type":"article","og_title":"So berechnen Sie den BIC in der R-Statorials","og_description":"In diesem Tutorial wird anhand von Beispielen erl\u00e4utert, wie BIC-Werte f\u00fcr Regressionsmodelle in R berechnet werden.","og_url":"https:\/\/statorials.org\/de\/bic-nach-r\/","og_site_name":"Statorials","article_published_time":"2023-07-23T13:06:58+00:00","author":"Dr. Benjamin Anderson","twitter_card":"summary_large_image","twitter_misc":{"Verfasst von":"Dr. Benjamin Anderson","Gesch\u00e4tzte Lesezeit":"2 Minuten"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/statorials.org\/de\/bic-nach-r\/","url":"https:\/\/statorials.org\/de\/bic-nach-r\/","name":"So berechnen Sie den BIC in der R-Statorials","isPartOf":{"@id":"https:\/\/statorials.org\/de\/#website"},"datePublished":"2023-07-23T13:06:58+00:00","dateModified":"2023-07-23T13:06:58+00:00","author":{"@id":"https:\/\/statorials.org\/de\/#\/schema\/person\/ec75c4d6365f2708f8a0ad3a42121aa0"},"description":"In diesem Tutorial wird anhand von Beispielen erl\u00e4utert, wie BIC-Werte f\u00fcr Regressionsmodelle in R berechnet werden.","breadcrumb":{"@id":"https:\/\/statorials.org\/de\/bic-nach-r\/#breadcrumb"},"inLanguage":"de-DE","potentialAction":[{"@type":"ReadAction","target":["https:\/\/statorials.org\/de\/bic-nach-r\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/statorials.org\/de\/bic-nach-r\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Heim","item":"https:\/\/statorials.org\/de\/"},{"@type":"ListItem","position":2,"name":"So berechnen sie den bic in r"}]},{"@type":"WebSite","@id":"https:\/\/statorials.org\/de\/#website","url":"https:\/\/statorials.org\/de\/","name":"Statorials","description":"Ihr Leitfaden f\u00fcr statistische Kompetenz !","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/statorials.org\/de\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"de-DE"},{"@type":"Person","@id":"https:\/\/statorials.org\/de\/#\/schema\/person\/ec75c4d6365f2708f8a0ad3a42121aa0","name":"Dr. Benjamin Anderson","image":{"@type":"ImageObject","inLanguage":"de-DE","@id":"https:\/\/statorials.org\/de\/#\/schema\/person\/image\/","url":"https:\/\/statorials.org\/de\/wp-content\/uploads\/2023\/11\/Benjamin-Anderson-96x96.jpg","contentUrl":"https:\/\/statorials.org\/de\/wp-content\/uploads\/2023\/11\/Benjamin-Anderson-96x96.jpg","caption":"Dr. Benjamin Anderson"},"description":"Hallo, ich bin Benjamin, ein pensionierter Statistikprofessor, der sich zum engagierten Statorials-Lehrer entwickelt hat. Mit umfassender Erfahrung und Fachwissen auf dem Gebiet der Statistik bin ich bestrebt, mein Wissen zu teilen, um Studenten durch Statorials zu bef\u00e4higen. Mehr wissen","sameAs":["https:\/\/statorials.org\/de"]}]}},"yoast_meta":{"yoast_wpseo_title":"","yoast_wpseo_metadesc":"","yoast_wpseo_canonical":""},"_links":{"self":[{"href":"https:\/\/statorials.org\/de\/wp-json\/wp\/v2\/posts\/2136"}],"collection":[{"href":"https:\/\/statorials.org\/de\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/statorials.org\/de\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/statorials.org\/de\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/statorials.org\/de\/wp-json\/wp\/v2\/comments?post=2136"}],"version-history":[{"count":0,"href":"https:\/\/statorials.org\/de\/wp-json\/wp\/v2\/posts\/2136\/revisions"}],"wp:attachment":[{"href":"https:\/\/statorials.org\/de\/wp-json\/wp\/v2\/media?parent=2136"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/statorials.org\/de\/wp-json\/wp\/v2\/categories?post=2136"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/statorials.org\/de\/wp-json\/wp\/v2\/tags?post=2136"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}