{"id":624,"date":"2023-07-29T07:15:08","date_gmt":"2023-07-29T07:15:08","guid":{"rendered":"https:\/\/statorials.org\/pt\/teste-estatistico-mcnemar\/"},"modified":"2023-07-29T07:15:08","modified_gmt":"2023-07-29T07:15:08","slug":"teste-estatistico-mcnemar","status":"publish","type":"post","link":"https:\/\/statorials.org\/pt\/teste-estatistico-mcnemar\/","title":{"rendered":"Como realizar o teste de mcnemar no stata"},"content":{"rendered":"<p><\/p>\n<hr>\n<p><span style=\"color: #000000;\"><strong>O teste de McNemar<\/strong> \u00e9 um teste que podemos usar para determinar se h\u00e1 uma diferen\u00e7a estatisticamente significativa nas propor\u00e7\u00f5es entre dados pareados.<\/span><\/p>\n<p> <span style=\"color: #000000;\">Este tutorial explica como realizar o teste McNemar no Stata.<\/span><\/p>\n<h2> <span style=\"color: #000000;\"><strong>Exemplo: teste de McNemar no Stata<\/strong><\/span><\/h2>\n<p> <span style=\"color: #000000;\">Digamos que os pesquisadores queiram saber se um determinado v\u00eddeo de marketing pode mudar a opini\u00e3o das pessoas sobre uma determinada lei. Eles entrevistaram 100 pessoas para descobrir se apoiam ou n\u00e3o a lei. Em seguida, eles mostram o v\u00eddeo de marketing para todas as 100 pessoas e as pesquisam novamente ap\u00f3s a conclus\u00e3o do v\u00eddeo.<\/span><\/p>\n<p> <span style=\"color: #000000;\">A tabela a seguir mostra o n\u00famero total de pessoas que apoiaram a lei antes e depois de assistir ao v\u00eddeo:<\/span><\/p>\n<table>\n<tbody>\n<tr>\n<th><\/th>\n<th colspan=\"2\"> <span style=\"color: #000000;\">V\u00eddeo antes do marketing<\/span><\/th>\n<\/tr>\n<tr>\n<td> <span style=\"color: #000000;\">V\u00eddeo ap\u00f3s marketing<\/span><\/td>\n<td> <strong><span style=\"color: #000000;\">Apoiar<\/span><\/strong><\/td>\n<td> <span style=\"color: #000000;\"><strong>N\u00e3o aguento<\/strong><\/span><\/td>\n<\/tr>\n<tr>\n<td> <span style=\"color: #000000;\"><strong>Apoiar<\/strong><\/span><\/td>\n<td> <span style=\"color: #000000;\">30<\/span><\/td>\n<td> <span style=\"color: #000000;\">40<\/span><\/td>\n<\/tr>\n<tr>\n<td> <span style=\"color: #000000;\"><strong>N\u00e3o aguento<\/strong><\/span><\/td>\n<td> <span style=\"color: #000000;\">12<\/span><\/td>\n<td> <span style=\"color: #000000;\">18<\/span><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p> <span style=\"color: #000000;\">Para determinar se houve diferen\u00e7a estatisticamente significativa na propor\u00e7\u00e3o de pessoas que apoiaram a lei antes e depois de assistir ao v\u00eddeo, podemos realizar o teste de McNemar.<\/span><\/p>\n<p> <span style=\"color: #000000;\">No Stata, podemos usar o comando <strong>mcci<\/strong> para realizar o teste de McNemar. Inserimos as contagens na tabela 2&#215;2 da esquerda para a direita, de cima para baixo:<\/span><\/p>\n<blockquote>\n<p> <span style=\"color: #000000;\"><strong>McCi 30 40 12 18<\/strong><\/span> <\/p>\n<\/blockquote>\n<p><img decoding=\"async\" loading=\"lazy\" class=\"aligncenter wp-image-5917 \" src=\"https:\/\/statorials.org\/wp-content\/uploads\/2023\/08\/mcnemarstata1.png\" alt=\"Resultado do teste McNemar no Stata\" width=\"480\" height=\"401\" srcset=\"\" sizes=\"auto, \"><\/p>\n<p> <span style=\"color: #000000;\">Veja como interpretar o resultado:<\/span><\/p>\n<p> <span style=\"color: #000000;\"><strong>Tabela 2 \u00d7 2:<\/strong> Stata exibe uma tabela 2 \u00d7 2 de contagens usando r\u00f3tulos convencionais frequentemente vistos em estudos de caso-controle. Podemos ver que o total de contas soma 100.<\/span><\/p>\n<p> <span style=\"color: #000000;\"><strong>Chi2(1) de McNemar:<\/strong> Esta \u00e9 a estat\u00edstica do teste qui-quadrado, que resulta em 15,08. Stata usa a seguinte f\u00f3rmula para calcular esse valor: (40-12) <sup>2<\/sup> \/ (40+12) = 784\/52 = 15,0769.<\/span><\/p>\n<p> <span style=\"color: #000000;\"><strong>Prob &gt; chi2:<\/strong> Este \u00e9 o valor p associado \u00e0 estat\u00edstica do teste qui-quadrado. Acontece que \u00e9 0,0001. Dado que este valor \u00e9 inferior a 0,05, podemos rejeitar a hip\u00f3tese nula e concluir que a propor\u00e7\u00e3o de pessoas que apoiaram a lei antes e depois de verem o v\u00eddeo de marketing foi estatisticamente significativamente diferente.<\/span><\/p>\n<h3> <span style=\"color: #000000;\"><strong>Uma nota sobre o c\u00e1lculo do qui quadrado<\/strong><\/span><\/h3>\n<p> <span style=\"color: #000000;\">Dada a seguinte tabela 2&#215;2:<\/span><\/p>\n<table>\n<tbody>\n<tr>\n<th><\/th>\n<th colspan=\"2\"> <span style=\"color: #000000;\">V\u00eddeo antes do marketing<\/span><\/th>\n<\/tr>\n<tr>\n<td> <span style=\"color: #000000;\">V\u00eddeo ap\u00f3s marketing<\/span><\/td>\n<td> <strong><span style=\"color: #000000;\">Apoiar<\/span><\/strong><\/td>\n<td> <span style=\"color: #000000;\"><strong>N\u00e3o aguento<\/strong><\/span><\/td>\n<\/tr>\n<tr>\n<td> <span style=\"color: #000000;\"><strong>Apoiar<\/strong><\/span><\/td>\n<td> <span style=\"color: #000000;\">TEM<\/span><\/td>\n<td> <span style=\"color: #000000;\">B<\/span><\/td>\n<\/tr>\n<tr>\n<td> <span style=\"color: #000000;\"><strong>N\u00e3o aguento<\/strong><\/span><\/td>\n<td> <span style=\"color: #000000;\">VS<\/span><\/td>\n<td> <span style=\"color: #000000;\">D<\/span><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p> <span style=\"color: #000000;\">Stata usa a f\u00f3rmula (BC) <sup>2<\/sup> \/ (B+C) para calcular a estat\u00edstica do teste Qui-quadrado.<\/span><\/p>\n<p> <span style=\"color: #000000;\">No entanto, alguns livros de estat\u00edstica sugerem o uso da f\u00f3rmula (|BC| \u2013 1) <sup>2<\/sup> \/ (B+C) como uma corre\u00e7\u00e3o de continuidade quando alguns n\u00fameros na tabela s\u00e3o pequenos. Normalmente, essa corre\u00e7\u00e3o geralmente \u00e9 aplicada quando o n\u00famero de c\u00e9lulas \u00e9 menor que 5.<\/span><\/p>\n","protected":false},"excerpt":{"rendered":"<p>O teste de McNemar \u00e9 um teste que podemos usar para determinar se h\u00e1 uma diferen\u00e7a estatisticamente significativa nas propor\u00e7\u00f5es entre dados pareados. Este tutorial explica como realizar o teste McNemar no Stata. Exemplo: teste de McNemar no Stata Digamos que os pesquisadores queiram saber se um determinado v\u00eddeo de marketing pode mudar a opini\u00e3o [&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":[],"class_list":["post-624","post","type-post","status-publish","format-standard","hentry","category-guia"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v21.5 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Como realizar o teste de McNemar no Stata - Statorials<\/title>\n<meta name=\"description\" content=\"Uma explica\u00e7\u00e3o simples de como realizar o teste de McNemar no Stata, incluindo um exemplo passo a passo.\" \/>\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\/pt\/teste-estatistico-mcnemar\/\" \/>\n<meta property=\"og:locale\" content=\"pt_PT\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Como realizar o teste de McNemar no Stata - Statorials\" \/>\n<meta property=\"og:description\" content=\"Uma explica\u00e7\u00e3o simples de como realizar o teste de McNemar no Stata, incluindo um exemplo passo a passo.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/statorials.org\/pt\/teste-estatistico-mcnemar\/\" \/>\n<meta property=\"og:site_name\" content=\"Statorials\" \/>\n<meta property=\"article:published_time\" content=\"2023-07-29T07:15:08+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/statorials.org\/wp-content\/uploads\/2023\/08\/mcnemarstata1.png\" \/>\n<meta name=\"author\" content=\"Dr. benjamim anderson\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Escrito por\" \/>\n\t<meta name=\"twitter:data1\" content=\"Dr. benjamim anderson\" \/>\n\t<meta name=\"twitter:label2\" content=\"Tempo estimado de leitura\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 minutos\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/statorials.org\/pt\/teste-estatistico-mcnemar\/\",\"url\":\"https:\/\/statorials.org\/pt\/teste-estatistico-mcnemar\/\",\"name\":\"Como realizar o teste de McNemar no Stata - Statorials\",\"isPartOf\":{\"@id\":\"https:\/\/statorials.org\/pt\/#website\"},\"datePublished\":\"2023-07-29T07:15:08+00:00\",\"dateModified\":\"2023-07-29T07:15:08+00:00\",\"author\":{\"@id\":\"https:\/\/statorials.org\/pt\/#\/schema\/person\/e08f98e8db95e0aa9c310e1b27c9c666\"},\"description\":\"Uma explica\u00e7\u00e3o simples de como realizar o teste de McNemar no Stata, incluindo um exemplo passo a passo.\",\"breadcrumb\":{\"@id\":\"https:\/\/statorials.org\/pt\/teste-estatistico-mcnemar\/#breadcrumb\"},\"inLanguage\":\"pt-PT\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/statorials.org\/pt\/teste-estatistico-mcnemar\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/statorials.org\/pt\/teste-estatistico-mcnemar\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Lar\",\"item\":\"https:\/\/statorials.org\/pt\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Como realizar o teste de mcnemar no stata\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/statorials.org\/pt\/#website\",\"url\":\"https:\/\/statorials.org\/pt\/\",\"name\":\"Statorials\",\"description\":\"O seu guia para a literacia estat\u00edstica!\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/statorials.org\/pt\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"pt-PT\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/statorials.org\/pt\/#\/schema\/person\/e08f98e8db95e0aa9c310e1b27c9c666\",\"name\":\"Dr. benjamim anderson\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"pt-PT\",\"@id\":\"https:\/\/statorials.org\/pt\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/statorials.org\/pt\/wp-content\/uploads\/2023\/10\/Dr.-Benjamin-Anderson-96x96.jpg\",\"contentUrl\":\"https:\/\/statorials.org\/pt\/wp-content\/uploads\/2023\/10\/Dr.-Benjamin-Anderson-96x96.jpg\",\"caption\":\"Dr. benjamim anderson\"},\"description\":\"Ol\u00e1, sou Benjamin, um professor aposentado de estat\u00edstica que se tornou professor dedicado na Statorials. Com vasta experi\u00eancia e conhecimento na \u00e1rea de estat\u00edstica, estou empenhado em compartilhar meu conhecimento para capacitar os alunos por meio de Statorials. Saber mais\",\"sameAs\":[\"https:\/\/statorials.org\/pt\"]}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Como realizar o teste de McNemar no Stata - Statorials","description":"Uma explica\u00e7\u00e3o simples de como realizar o teste de McNemar no Stata, incluindo um exemplo passo a passo.","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\/pt\/teste-estatistico-mcnemar\/","og_locale":"pt_PT","og_type":"article","og_title":"Como realizar o teste de McNemar no Stata - Statorials","og_description":"Uma explica\u00e7\u00e3o simples de como realizar o teste de McNemar no Stata, incluindo um exemplo passo a passo.","og_url":"https:\/\/statorials.org\/pt\/teste-estatistico-mcnemar\/","og_site_name":"Statorials","article_published_time":"2023-07-29T07:15:08+00:00","og_image":[{"url":"https:\/\/statorials.org\/wp-content\/uploads\/2023\/08\/mcnemarstata1.png"}],"author":"Dr. benjamim anderson","twitter_card":"summary_large_image","twitter_misc":{"Escrito por":"Dr. benjamim anderson","Tempo estimado de leitura":"2 minutos"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/statorials.org\/pt\/teste-estatistico-mcnemar\/","url":"https:\/\/statorials.org\/pt\/teste-estatistico-mcnemar\/","name":"Como realizar o teste de McNemar no Stata - Statorials","isPartOf":{"@id":"https:\/\/statorials.org\/pt\/#website"},"datePublished":"2023-07-29T07:15:08+00:00","dateModified":"2023-07-29T07:15:08+00:00","author":{"@id":"https:\/\/statorials.org\/pt\/#\/schema\/person\/e08f98e8db95e0aa9c310e1b27c9c666"},"description":"Uma explica\u00e7\u00e3o simples de como realizar o teste de McNemar no Stata, incluindo um exemplo passo a passo.","breadcrumb":{"@id":"https:\/\/statorials.org\/pt\/teste-estatistico-mcnemar\/#breadcrumb"},"inLanguage":"pt-PT","potentialAction":[{"@type":"ReadAction","target":["https:\/\/statorials.org\/pt\/teste-estatistico-mcnemar\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/statorials.org\/pt\/teste-estatistico-mcnemar\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Lar","item":"https:\/\/statorials.org\/pt\/"},{"@type":"ListItem","position":2,"name":"Como realizar o teste de mcnemar no stata"}]},{"@type":"WebSite","@id":"https:\/\/statorials.org\/pt\/#website","url":"https:\/\/statorials.org\/pt\/","name":"Statorials","description":"O seu guia para a literacia estat\u00edstica!","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/statorials.org\/pt\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"pt-PT"},{"@type":"Person","@id":"https:\/\/statorials.org\/pt\/#\/schema\/person\/e08f98e8db95e0aa9c310e1b27c9c666","name":"Dr. benjamim anderson","image":{"@type":"ImageObject","inLanguage":"pt-PT","@id":"https:\/\/statorials.org\/pt\/#\/schema\/person\/image\/","url":"https:\/\/statorials.org\/pt\/wp-content\/uploads\/2023\/10\/Dr.-Benjamin-Anderson-96x96.jpg","contentUrl":"https:\/\/statorials.org\/pt\/wp-content\/uploads\/2023\/10\/Dr.-Benjamin-Anderson-96x96.jpg","caption":"Dr. benjamim anderson"},"description":"Ol\u00e1, sou Benjamin, um professor aposentado de estat\u00edstica que se tornou professor dedicado na Statorials. Com vasta experi\u00eancia e conhecimento na \u00e1rea de estat\u00edstica, estou empenhado em compartilhar meu conhecimento para capacitar os alunos por meio de Statorials. Saber mais","sameAs":["https:\/\/statorials.org\/pt"]}]}},"yoast_meta":{"yoast_wpseo_title":"","yoast_wpseo_metadesc":"","yoast_wpseo_canonical":""},"_links":{"self":[{"href":"https:\/\/statorials.org\/pt\/wp-json\/wp\/v2\/posts\/624","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/statorials.org\/pt\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/statorials.org\/pt\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/statorials.org\/pt\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/statorials.org\/pt\/wp-json\/wp\/v2\/comments?post=624"}],"version-history":[{"count":0,"href":"https:\/\/statorials.org\/pt\/wp-json\/wp\/v2\/posts\/624\/revisions"}],"wp:attachment":[{"href":"https:\/\/statorials.org\/pt\/wp-json\/wp\/v2\/media?parent=624"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/statorials.org\/pt\/wp-json\/wp\/v2\/categories?post=624"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/statorials.org\/pt\/wp-json\/wp\/v2\/tags?post=624"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}