CINXE.COM
Mixed model - Wikipedia
<!DOCTYPE html> <html class="client-nojs vector-feature-language-in-header-enabled vector-feature-language-in-main-page-header-disabled vector-feature-page-tools-pinned-disabled vector-feature-toc-pinned-clientpref-1 vector-feature-main-menu-pinned-disabled vector-feature-limited-width-clientpref-1 vector-feature-limited-width-content-enabled vector-feature-custom-font-size-clientpref-1 vector-feature-appearance-pinned-clientpref-1 vector-feature-night-mode-enabled skin-theme-clientpref-day vector-sticky-header-enabled vector-toc-available" lang="en" dir="ltr"> <head> <meta charset="UTF-8"> <title>Mixed model - Wikipedia</title> <script>(function(){var className="client-js vector-feature-language-in-header-enabled vector-feature-language-in-main-page-header-disabled vector-feature-page-tools-pinned-disabled vector-feature-toc-pinned-clientpref-1 vector-feature-main-menu-pinned-disabled vector-feature-limited-width-clientpref-1 vector-feature-limited-width-content-enabled vector-feature-custom-font-size-clientpref-1 vector-feature-appearance-pinned-clientpref-1 vector-feature-night-mode-enabled skin-theme-clientpref-day vector-sticky-header-enabled vector-toc-available";var cookie=document.cookie.match(/(?:^|; )enwikimwclientpreferences=([^;]+)/);if(cookie){cookie[1].split('%2C').forEach(function(pref){className=className.replace(new RegExp('(^| )'+pref.replace(/-clientpref-\w+$|[^\w-]+/g,'')+'-clientpref-\\w+( |$)'),'$1'+pref+'$2');});}document.documentElement.className=className;}());RLCONF={"wgBreakFrames":false,"wgSeparatorTransformTable":["",""],"wgDigitTransformTable":["",""],"wgDefaultDateFormat":"dmy", "wgMonthNames":["","January","February","March","April","May","June","July","August","September","October","November","December"],"wgRequestId":"6aa806a5-6855-4055-867e-904ab7e00a3a","wgCanonicalNamespace":"","wgCanonicalSpecialPageName":false,"wgNamespaceNumber":0,"wgPageName":"Mixed_model","wgTitle":"Mixed model","wgCurRevisionId":1275088582,"wgRevisionId":1275088582,"wgArticleId":5431921,"wgIsArticle":true,"wgIsRedirect":false,"wgAction":"view","wgUserName":null,"wgUserGroups":["*"],"wgCategories":["CS1 maint: multiple names: authors list","CS1: long volume value","Articles with short description","Short description matches Wikidata","Regression models","Analysis of variance"],"wgPageViewLanguage":"en","wgPageContentLanguage":"en","wgPageContentModel":"wikitext","wgRelevantPageName":"Mixed_model","wgRelevantArticleId":5431921,"wgIsProbablyEditable":true,"wgRelevantPageIsProbablyEditable":true,"wgRestrictionEdit":[],"wgRestrictionMove":[],"wgNoticeProject":"wikipedia", "wgCiteReferencePreviewsActive":false,"wgFlaggedRevsParams":{"tags":{"status":{"levels":1}}},"wgMediaViewerOnClick":true,"wgMediaViewerEnabledByDefault":true,"wgPopupsFlags":0,"wgVisualEditor":{"pageLanguageCode":"en","pageLanguageDir":"ltr","pageVariantFallbacks":"en"},"wgMFDisplayWikibaseDescriptions":{"search":true,"watchlist":true,"tagline":false,"nearby":true},"wgWMESchemaEditAttemptStepOversample":false,"wgWMEPageLength":20000,"wgEditSubmitButtonLabelPublish":true,"wgULSPosition":"interlanguage","wgULSisCompactLinksEnabled":false,"wgVector2022LanguageInHeader":true,"wgULSisLanguageSelectorEmpty":false,"wgWikibaseItemId":"Q1501135","wgCheckUserClientHintsHeadersJsApi":["brands","architecture","bitness","fullVersionList","mobile","model","platform","platformVersion"],"GEHomepageSuggestedEditsEnableTopics":true,"wgGETopicsMatchModeEnabled":false,"wgGEStructuredTaskRejectionReasonTextInputEnabled":false,"wgGELevelingUpEnabledForUser":false};RLSTATE={"ext.globalCssJs.user.styles": "ready","site.styles":"ready","user.styles":"ready","ext.globalCssJs.user":"ready","user":"ready","user.options":"loading","ext.cite.styles":"ready","ext.math.styles":"ready","skins.vector.search.codex.styles":"ready","skins.vector.styles":"ready","skins.vector.icons":"ready","ext.wikimediamessages.styles":"ready","ext.visualEditor.desktopArticleTarget.noscript":"ready","ext.uls.interlanguage":"ready","wikibase.client.init":"ready","ext.wikimediaBadges":"ready"};RLPAGEMODULES=["ext.cite.ux-enhancements","mediawiki.page.media","ext.scribunto.logs","site","mediawiki.page.ready","mediawiki.toc","skins.vector.js","ext.centralNotice.geoIP","ext.centralNotice.startUp","ext.gadget.ReferenceTooltips","ext.gadget.switcher","ext.urlShortener.toolbar","ext.centralauth.centralautologin","mmv.bootstrap","ext.popups","ext.visualEditor.desktopArticleTarget.init","ext.visualEditor.targetLoader","ext.echo.centralauth","ext.eventLogging","ext.wikimediaEvents","ext.navigationTiming","ext.uls.interface", "ext.cx.eventlogging.campaigns","ext.cx.uls.quick.actions","wikibase.client.vector-2022","ext.checkUser.clientHints","ext.growthExperiments.SuggestedEditSession"];</script> <script>(RLQ=window.RLQ||[]).push(function(){mw.loader.impl(function(){return["user.options@12s5i",function($,jQuery,require,module){mw.user.tokens.set({"patrolToken":"+\\","watchToken":"+\\","csrfToken":"+\\"}); }];});});</script> <link rel="stylesheet" href="/w/load.php?lang=en&modules=ext.cite.styles%7Cext.math.styles%7Cext.uls.interlanguage%7Cext.visualEditor.desktopArticleTarget.noscript%7Cext.wikimediaBadges%7Cext.wikimediamessages.styles%7Cskins.vector.icons%2Cstyles%7Cskins.vector.search.codex.styles%7Cwikibase.client.init&only=styles&skin=vector-2022"> <script async="" src="/w/load.php?lang=en&modules=startup&only=scripts&raw=1&skin=vector-2022"></script> <meta name="ResourceLoaderDynamicStyles" content=""> <link rel="stylesheet" href="/w/load.php?lang=en&modules=site.styles&only=styles&skin=vector-2022"> <meta name="generator" content="MediaWiki 1.44.0-wmf.15"> <meta name="referrer" content="origin"> <meta name="referrer" content="origin-when-cross-origin"> <meta name="robots" content="max-image-preview:standard"> <meta name="format-detection" content="telephone=no"> <meta name="viewport" content="width=1120"> <meta property="og:title" content="Mixed model - Wikipedia"> <meta property="og:type" content="website"> <link rel="preconnect" href="//upload.wikimedia.org"> <link rel="alternate" media="only screen and (max-width: 640px)" href="//en.m.wikipedia.org/wiki/Mixed_model"> <link rel="alternate" type="application/x-wiki" title="Edit this page" href="/w/index.php?title=Mixed_model&action=edit"> <link rel="apple-touch-icon" href="/static/apple-touch/wikipedia.png"> <link rel="icon" href="/static/favicon/wikipedia.ico"> <link rel="search" type="application/opensearchdescription+xml" href="/w/rest.php/v1/search" title="Wikipedia (en)"> <link rel="EditURI" type="application/rsd+xml" href="//en.wikipedia.org/w/api.php?action=rsd"> <link rel="canonical" href="https://en.wikipedia.org/wiki/Mixed_model"> <link rel="license" href="https://creativecommons.org/licenses/by-sa/4.0/deed.en"> <link rel="alternate" type="application/atom+xml" title="Wikipedia Atom feed" href="/w/index.php?title=Special:RecentChanges&feed=atom"> <link rel="dns-prefetch" href="//meta.wikimedia.org" /> <link rel="dns-prefetch" href="login.wikimedia.org"> </head> <body class="skin--responsive skin-vector skin-vector-search-vue mediawiki ltr sitedir-ltr mw-hide-empty-elt ns-0 ns-subject mw-editable page-Mixed_model rootpage-Mixed_model skin-vector-2022 action-view"><a class="mw-jump-link" href="#bodyContent">Jump to content</a> <div class="vector-header-container"> <header class="vector-header mw-header"> <div class="vector-header-start"> <nav class="vector-main-menu-landmark" aria-label="Site"> <div id="vector-main-menu-dropdown" class="vector-dropdown vector-main-menu-dropdown vector-button-flush-left vector-button-flush-right" title="Main menu" > <input type="checkbox" id="vector-main-menu-dropdown-checkbox" role="button" aria-haspopup="true" data-event-name="ui.dropdown-vector-main-menu-dropdown" class="vector-dropdown-checkbox " aria-label="Main menu" > <label id="vector-main-menu-dropdown-label" for="vector-main-menu-dropdown-checkbox" class="vector-dropdown-label cdx-button cdx-button--fake-button cdx-button--fake-button--enabled cdx-button--weight-quiet cdx-button--icon-only " aria-hidden="true" ><span class="vector-icon mw-ui-icon-menu mw-ui-icon-wikimedia-menu"></span> <span class="vector-dropdown-label-text">Main menu</span> </label> <div class="vector-dropdown-content"> <div id="vector-main-menu-unpinned-container" class="vector-unpinned-container"> <div id="vector-main-menu" class="vector-main-menu vector-pinnable-element"> <div class="vector-pinnable-header vector-main-menu-pinnable-header vector-pinnable-header-unpinned" data-feature-name="main-menu-pinned" data-pinnable-element-id="vector-main-menu" data-pinned-container-id="vector-main-menu-pinned-container" data-unpinned-container-id="vector-main-menu-unpinned-container" > <div class="vector-pinnable-header-label">Main menu</div> <button class="vector-pinnable-header-toggle-button vector-pinnable-header-pin-button" data-event-name="pinnable-header.vector-main-menu.pin">move to sidebar</button> <button class="vector-pinnable-header-toggle-button vector-pinnable-header-unpin-button" data-event-name="pinnable-header.vector-main-menu.unpin">hide</button> </div> <div id="p-navigation" class="vector-menu mw-portlet mw-portlet-navigation" > <div class="vector-menu-heading"> Navigation </div> <div class="vector-menu-content"> <ul class="vector-menu-content-list"> <li id="n-mainpage-description" class="mw-list-item"><a href="/wiki/Main_Page" title="Visit the main page [z]" accesskey="z"><span>Main page</span></a></li><li id="n-contents" class="mw-list-item"><a href="/wiki/Wikipedia:Contents" title="Guides to browsing Wikipedia"><span>Contents</span></a></li><li id="n-currentevents" class="mw-list-item"><a href="/wiki/Portal:Current_events" title="Articles related to current events"><span>Current events</span></a></li><li id="n-randompage" class="mw-list-item"><a href="/wiki/Special:Random" title="Visit a randomly selected article [x]" accesskey="x"><span>Random article</span></a></li><li id="n-aboutsite" class="mw-list-item"><a href="/wiki/Wikipedia:About" title="Learn about Wikipedia and how it works"><span>About Wikipedia</span></a></li><li id="n-contactpage" class="mw-list-item"><a href="//en.wikipedia.org/wiki/Wikipedia:Contact_us" title="How to contact Wikipedia"><span>Contact us</span></a></li> </ul> </div> </div> <div id="p-interaction" class="vector-menu mw-portlet mw-portlet-interaction" > <div class="vector-menu-heading"> Contribute </div> <div class="vector-menu-content"> <ul class="vector-menu-content-list"> <li id="n-help" class="mw-list-item"><a href="/wiki/Help:Contents" title="Guidance on how to use and edit Wikipedia"><span>Help</span></a></li><li id="n-introduction" class="mw-list-item"><a href="/wiki/Help:Introduction" title="Learn how to edit Wikipedia"><span>Learn to edit</span></a></li><li id="n-portal" class="mw-list-item"><a href="/wiki/Wikipedia:Community_portal" title="The hub for editors"><span>Community portal</span></a></li><li id="n-recentchanges" class="mw-list-item"><a href="/wiki/Special:RecentChanges" title="A list of recent changes to Wikipedia [r]" accesskey="r"><span>Recent changes</span></a></li><li id="n-upload" class="mw-list-item"><a href="/wiki/Wikipedia:File_upload_wizard" title="Add images or other media for use on Wikipedia"><span>Upload file</span></a></li> </ul> </div> </div> </div> </div> </div> </div> </nav> <a href="/wiki/Main_Page" class="mw-logo"> <img class="mw-logo-icon" src="/static/images/icons/wikipedia.png" alt="" aria-hidden="true" height="50" width="50"> <span class="mw-logo-container skin-invert"> <img class="mw-logo-wordmark" alt="Wikipedia" src="/static/images/mobile/copyright/wikipedia-wordmark-en.svg" style="width: 7.5em; height: 1.125em;"> <img class="mw-logo-tagline" alt="The Free Encyclopedia" src="/static/images/mobile/copyright/wikipedia-tagline-en.svg" width="117" height="13" style="width: 7.3125em; height: 0.8125em;"> </span> </a> </div> <div class="vector-header-end"> <div id="p-search" role="search" class="vector-search-box-vue vector-search-box-collapses vector-search-box-show-thumbnail vector-search-box-auto-expand-width vector-search-box"> <a href="/wiki/Special:Search" class="cdx-button cdx-button--fake-button cdx-button--fake-button--enabled cdx-button--weight-quiet cdx-button--icon-only search-toggle" title="Search Wikipedia [f]" accesskey="f"><span class="vector-icon mw-ui-icon-search mw-ui-icon-wikimedia-search"></span> <span>Search</span> </a> <div class="vector-typeahead-search-container"> <div class="cdx-typeahead-search cdx-typeahead-search--show-thumbnail cdx-typeahead-search--auto-expand-width"> <form action="/w/index.php" id="searchform" class="cdx-search-input cdx-search-input--has-end-button"> <div id="simpleSearch" class="cdx-search-input__input-wrapper" data-search-loc="header-moved"> <div class="cdx-text-input cdx-text-input--has-start-icon"> <input class="cdx-text-input__input" type="search" name="search" placeholder="Search Wikipedia" aria-label="Search Wikipedia" autocapitalize="sentences" title="Search Wikipedia [f]" accesskey="f" id="searchInput" > <span class="cdx-text-input__icon cdx-text-input__start-icon"></span> </div> <input type="hidden" name="title" value="Special:Search"> </div> <button class="cdx-button cdx-search-input__end-button">Search</button> </form> </div> </div> </div> <nav class="vector-user-links vector-user-links-wide" aria-label="Personal tools"> <div class="vector-user-links-main"> <div id="p-vector-user-menu-preferences" class="vector-menu mw-portlet emptyPortlet" > <div class="vector-menu-content"> <ul class="vector-menu-content-list"> </ul> </div> </div> <div id="p-vector-user-menu-userpage" class="vector-menu mw-portlet emptyPortlet" > <div class="vector-menu-content"> <ul class="vector-menu-content-list"> </ul> </div> </div> <nav class="vector-appearance-landmark" aria-label="Appearance"> <div id="vector-appearance-dropdown" class="vector-dropdown " title="Change the appearance of the page's font size, width, and color" > <input type="checkbox" id="vector-appearance-dropdown-checkbox" role="button" aria-haspopup="true" data-event-name="ui.dropdown-vector-appearance-dropdown" class="vector-dropdown-checkbox " aria-label="Appearance" > <label id="vector-appearance-dropdown-label" for="vector-appearance-dropdown-checkbox" class="vector-dropdown-label cdx-button cdx-button--fake-button cdx-button--fake-button--enabled cdx-button--weight-quiet cdx-button--icon-only " aria-hidden="true" ><span class="vector-icon mw-ui-icon-appearance mw-ui-icon-wikimedia-appearance"></span> <span class="vector-dropdown-label-text">Appearance</span> </label> <div class="vector-dropdown-content"> <div id="vector-appearance-unpinned-container" class="vector-unpinned-container"> </div> </div> </div> </nav> <div id="p-vector-user-menu-notifications" class="vector-menu mw-portlet emptyPortlet" > <div class="vector-menu-content"> <ul class="vector-menu-content-list"> </ul> </div> </div> <div id="p-vector-user-menu-overflow" class="vector-menu mw-portlet" > <div class="vector-menu-content"> <ul class="vector-menu-content-list"> <li id="pt-sitesupport-2" class="user-links-collapsible-item mw-list-item user-links-collapsible-item"><a data-mw="interface" href="https://donate.wikimedia.org/?wmf_source=donate&wmf_medium=sidebar&wmf_campaign=en.wikipedia.org&uselang=en" class=""><span>Donate</span></a> </li> <li id="pt-createaccount-2" class="user-links-collapsible-item mw-list-item user-links-collapsible-item"><a data-mw="interface" href="/w/index.php?title=Special:CreateAccount&returnto=Mixed+model" title="You are encouraged to create an account and log in; however, it is not mandatory" class=""><span>Create account</span></a> </li> <li id="pt-login-2" class="user-links-collapsible-item mw-list-item user-links-collapsible-item"><a data-mw="interface" href="/w/index.php?title=Special:UserLogin&returnto=Mixed+model" title="You're encouraged to log in; however, it's not mandatory. [o]" accesskey="o" class=""><span>Log in</span></a> </li> </ul> </div> </div> </div> <div id="vector-user-links-dropdown" class="vector-dropdown vector-user-menu vector-button-flush-right vector-user-menu-logged-out" title="Log in and more options" > <input type="checkbox" id="vector-user-links-dropdown-checkbox" role="button" aria-haspopup="true" data-event-name="ui.dropdown-vector-user-links-dropdown" class="vector-dropdown-checkbox " aria-label="Personal tools" > <label id="vector-user-links-dropdown-label" for="vector-user-links-dropdown-checkbox" class="vector-dropdown-label cdx-button cdx-button--fake-button cdx-button--fake-button--enabled cdx-button--weight-quiet cdx-button--icon-only " aria-hidden="true" ><span class="vector-icon mw-ui-icon-ellipsis mw-ui-icon-wikimedia-ellipsis"></span> <span class="vector-dropdown-label-text">Personal tools</span> </label> <div class="vector-dropdown-content"> <div id="p-personal" class="vector-menu mw-portlet mw-portlet-personal user-links-collapsible-item" title="User menu" > <div class="vector-menu-content"> <ul class="vector-menu-content-list"> <li id="pt-sitesupport" class="user-links-collapsible-item mw-list-item"><a href="https://donate.wikimedia.org/?wmf_source=donate&wmf_medium=sidebar&wmf_campaign=en.wikipedia.org&uselang=en"><span>Donate</span></a></li><li id="pt-createaccount" class="user-links-collapsible-item mw-list-item"><a href="/w/index.php?title=Special:CreateAccount&returnto=Mixed+model" title="You are encouraged to create an account and log in; however, it is not mandatory"><span class="vector-icon mw-ui-icon-userAdd mw-ui-icon-wikimedia-userAdd"></span> <span>Create account</span></a></li><li id="pt-login" class="user-links-collapsible-item mw-list-item"><a href="/w/index.php?title=Special:UserLogin&returnto=Mixed+model" title="You're encouraged to log in; however, it's not mandatory. [o]" accesskey="o"><span class="vector-icon mw-ui-icon-logIn mw-ui-icon-wikimedia-logIn"></span> <span>Log in</span></a></li> </ul> </div> </div> <div id="p-user-menu-anon-editor" class="vector-menu mw-portlet mw-portlet-user-menu-anon-editor" > <div class="vector-menu-heading"> Pages for logged out editors <a href="/wiki/Help:Introduction" aria-label="Learn more about editing"><span>learn more</span></a> </div> <div class="vector-menu-content"> <ul class="vector-menu-content-list"> <li id="pt-anoncontribs" class="mw-list-item"><a href="/wiki/Special:MyContributions" title="A list of edits made from this IP address [y]" accesskey="y"><span>Contributions</span></a></li><li id="pt-anontalk" class="mw-list-item"><a href="/wiki/Special:MyTalk" title="Discussion about edits from this IP address [n]" accesskey="n"><span>Talk</span></a></li> </ul> </div> </div> </div> </div> </nav> </div> </header> </div> <div class="mw-page-container"> <div class="mw-page-container-inner"> <div class="vector-sitenotice-container"> <div id="siteNotice"><!-- CentralNotice --></div> </div> <div class="vector-column-start"> <div class="vector-main-menu-container"> <div id="mw-navigation"> <nav id="mw-panel" class="vector-main-menu-landmark" aria-label="Site"> <div id="vector-main-menu-pinned-container" class="vector-pinned-container"> </div> </nav> </div> </div> <div class="vector-sticky-pinned-container"> <nav id="mw-panel-toc" aria-label="Contents" data-event-name="ui.sidebar-toc" class="mw-table-of-contents-container vector-toc-landmark"> <div id="vector-toc-pinned-container" class="vector-pinned-container"> <div id="vector-toc" class="vector-toc vector-pinnable-element"> <div class="vector-pinnable-header vector-toc-pinnable-header vector-pinnable-header-pinned" data-feature-name="toc-pinned" data-pinnable-element-id="vector-toc" > <h2 class="vector-pinnable-header-label">Contents</h2> <button class="vector-pinnable-header-toggle-button vector-pinnable-header-pin-button" data-event-name="pinnable-header.vector-toc.pin">move to sidebar</button> <button class="vector-pinnable-header-toggle-button vector-pinnable-header-unpin-button" data-event-name="pinnable-header.vector-toc.unpin">hide</button> </div> <ul class="vector-toc-contents" id="mw-panel-toc-list"> <li id="toc-mw-content-text" class="vector-toc-list-item vector-toc-level-1"> <a href="#" class="vector-toc-link"> <div class="vector-toc-text">(Top)</div> </a> </li> <li id="toc-Qualitative_Description" class="vector-toc-list-item vector-toc-level-1 vector-toc-list-item-expanded"> <a class="vector-toc-link" href="#Qualitative_Description"> <div class="vector-toc-text"> <span class="vector-toc-numb">1</span> <span>Qualitative Description</span> </div> </a> <button aria-controls="toc-Qualitative_Description-sublist" class="cdx-button cdx-button--weight-quiet cdx-button--icon-only vector-toc-toggle"> <span class="vector-icon mw-ui-icon-wikimedia-expand"></span> <span>Toggle Qualitative Description subsection</span> </button> <ul id="toc-Qualitative_Description-sublist" class="vector-toc-list"> <li id="toc-The_Fixed_Effect" class="vector-toc-list-item vector-toc-level-2"> <a class="vector-toc-link" href="#The_Fixed_Effect"> <div class="vector-toc-text"> <span class="vector-toc-numb">1.1</span> <span>The Fixed Effect</span> </div> </a> <ul id="toc-The_Fixed_Effect-sublist" class="vector-toc-list"> </ul> </li> <li id="toc-The_Random_Effect,_ε" class="vector-toc-list-item vector-toc-level-2"> <a class="vector-toc-link" href="#The_Random_Effect,_ε"> <div class="vector-toc-text"> <span class="vector-toc-numb">1.2</span> <span>The Random Effect, ε</span> </div> </a> <ul id="toc-The_Random_Effect,_ε-sublist" class="vector-toc-list"> </ul> </li> </ul> </li> <li id="toc-History_and_current_status" class="vector-toc-list-item vector-toc-level-1 vector-toc-list-item-expanded"> <a class="vector-toc-link" href="#History_and_current_status"> <div class="vector-toc-text"> <span class="vector-toc-numb">2</span> <span>History and current status</span> </div> </a> <ul id="toc-History_and_current_status-sublist" class="vector-toc-list"> </ul> </li> <li id="toc-Definition" class="vector-toc-list-item vector-toc-level-1 vector-toc-list-item-expanded"> <a class="vector-toc-link" href="#Definition"> <div class="vector-toc-text"> <span class="vector-toc-numb">3</span> <span>Definition</span> </div> </a> <ul id="toc-Definition-sublist" class="vector-toc-list"> </ul> </li> <li id="toc-Estimation" class="vector-toc-list-item vector-toc-level-1 vector-toc-list-item-expanded"> <a class="vector-toc-link" href="#Estimation"> <div class="vector-toc-text"> <span class="vector-toc-numb">4</span> <span>Estimation</span> </div> </a> <button aria-controls="toc-Estimation-sublist" class="cdx-button cdx-button--weight-quiet cdx-button--icon-only vector-toc-toggle"> <span class="vector-icon mw-ui-icon-wikimedia-expand"></span> <span>Toggle Estimation subsection</span> </button> <ul id="toc-Estimation-sublist" class="vector-toc-list"> <li id="toc-Choice_of_random_effects_structure" class="vector-toc-list-item vector-toc-level-2"> <a class="vector-toc-link" href="#Choice_of_random_effects_structure"> <div class="vector-toc-text"> <span class="vector-toc-numb">4.1</span> <span>Choice of random effects structure</span> </div> </a> <ul id="toc-Choice_of_random_effects_structure-sublist" class="vector-toc-list"> </ul> </li> <li id="toc-Software" class="vector-toc-list-item vector-toc-level-2"> <a class="vector-toc-link" href="#Software"> <div class="vector-toc-text"> <span class="vector-toc-numb">4.2</span> <span>Software</span> </div> </a> <ul id="toc-Software-sublist" class="vector-toc-list"> </ul> </li> </ul> </li> <li id="toc-See_also" class="vector-toc-list-item vector-toc-level-1 vector-toc-list-item-expanded"> <a class="vector-toc-link" href="#See_also"> <div class="vector-toc-text"> <span class="vector-toc-numb">5</span> <span>See also</span> </div> </a> <ul id="toc-See_also-sublist" class="vector-toc-list"> </ul> </li> <li id="toc-References" class="vector-toc-list-item vector-toc-level-1 vector-toc-list-item-expanded"> <a class="vector-toc-link" href="#References"> <div class="vector-toc-text"> <span class="vector-toc-numb">6</span> <span>References</span> </div> </a> <ul id="toc-References-sublist" class="vector-toc-list"> </ul> </li> <li id="toc-Further_reading" class="vector-toc-list-item vector-toc-level-1 vector-toc-list-item-expanded"> <a class="vector-toc-link" href="#Further_reading"> <div class="vector-toc-text"> <span class="vector-toc-numb">7</span> <span>Further reading</span> </div> </a> <ul id="toc-Further_reading-sublist" class="vector-toc-list"> </ul> </li> </ul> </div> </div> </nav> </div> </div> <div class="mw-content-container"> <main id="content" class="mw-body"> <header class="mw-body-header vector-page-titlebar"> <nav aria-label="Contents" class="vector-toc-landmark"> <div id="vector-page-titlebar-toc" class="vector-dropdown vector-page-titlebar-toc vector-button-flush-left" title="Table of Contents" > <input type="checkbox" id="vector-page-titlebar-toc-checkbox" role="button" aria-haspopup="true" data-event-name="ui.dropdown-vector-page-titlebar-toc" class="vector-dropdown-checkbox " aria-label="Toggle the table of contents" > <label id="vector-page-titlebar-toc-label" for="vector-page-titlebar-toc-checkbox" class="vector-dropdown-label cdx-button cdx-button--fake-button cdx-button--fake-button--enabled cdx-button--weight-quiet cdx-button--icon-only " aria-hidden="true" ><span class="vector-icon mw-ui-icon-listBullet mw-ui-icon-wikimedia-listBullet"></span> <span class="vector-dropdown-label-text">Toggle the table of contents</span> </label> <div class="vector-dropdown-content"> <div id="vector-page-titlebar-toc-unpinned-container" class="vector-unpinned-container"> </div> </div> </div> </nav> <h1 id="firstHeading" class="firstHeading mw-first-heading"><span class="mw-page-title-main">Mixed model</span></h1> <div id="p-lang-btn" class="vector-dropdown mw-portlet mw-portlet-lang" > <input type="checkbox" id="p-lang-btn-checkbox" role="button" aria-haspopup="true" data-event-name="ui.dropdown-p-lang-btn" class="vector-dropdown-checkbox mw-interlanguage-selector" aria-label="Go to an article in another language. Available in 8 languages" > <label id="p-lang-btn-label" for="p-lang-btn-checkbox" class="vector-dropdown-label cdx-button cdx-button--fake-button cdx-button--fake-button--enabled cdx-button--weight-quiet cdx-button--action-progressive mw-portlet-lang-heading-8" aria-hidden="true" ><span class="vector-icon mw-ui-icon-language-progressive mw-ui-icon-wikimedia-language-progressive"></span> <span class="vector-dropdown-label-text">8 languages</span> </label> <div class="vector-dropdown-content"> <div class="vector-menu-content"> <ul class="vector-menu-content-list"> <li class="interlanguage-link interwiki-ar mw-list-item"><a href="https://ar.wikipedia.org/wiki/%D9%86%D9%85%D9%88%D8%B0%D8%AC_%D8%A7%D9%84%D8%A2%D8%AB%D8%A7%D8%B1_%D8%A7%D9%84%D9%85%D8%AE%D8%AA%D9%84%D8%B7%D8%A9" title="نموذج الآثار المختلطة – Arabic" lang="ar" hreflang="ar" data-title="نموذج الآثار المختلطة" data-language-autonym="العربية" data-language-local-name="Arabic" class="interlanguage-link-target"><span>العربية</span></a></li><li class="interlanguage-link interwiki-de mw-list-item"><a href="https://de.wikipedia.org/wiki/Gemischtes_Modell" title="Gemischtes Modell – German" lang="de" hreflang="de" data-title="Gemischtes Modell" data-language-autonym="Deutsch" data-language-local-name="German" class="interlanguage-link-target"><span>Deutsch</span></a></li><li class="interlanguage-link interwiki-fr mw-list-item"><a href="https://fr.wikipedia.org/wiki/Mod%C3%A8le_mixte" title="Modèle mixte – French" lang="fr" hreflang="fr" data-title="Modèle mixte" data-language-autonym="Français" data-language-local-name="French" class="interlanguage-link-target"><span>Français</span></a></li><li class="interlanguage-link interwiki-ja mw-list-item"><a href="https://ja.wikipedia.org/wiki/%E6%B7%B7%E5%90%88%E3%83%A2%E3%83%87%E3%83%AB" title="混合モデル – Japanese" lang="ja" hreflang="ja" data-title="混合モデル" data-language-autonym="日本語" data-language-local-name="Japanese" class="interlanguage-link-target"><span>日本語</span></a></li><li class="interlanguage-link interwiki-no mw-list-item"><a href="https://no.wikipedia.org/wiki/Blandede_modeller" title="Blandede modeller – Norwegian Bokmål" lang="nb" hreflang="nb" data-title="Blandede modeller" data-language-autonym="Norsk bokmål" data-language-local-name="Norwegian Bokmål" class="interlanguage-link-target"><span>Norsk bokmål</span></a></li><li class="interlanguage-link interwiki-pt mw-list-item"><a href="https://pt.wikipedia.org/wiki/Modelo_misto" title="Modelo misto – Portuguese" lang="pt" hreflang="pt" data-title="Modelo misto" data-language-autonym="Português" data-language-local-name="Portuguese" class="interlanguage-link-target"><span>Português</span></a></li><li class="interlanguage-link interwiki-uk mw-list-item"><a href="https://uk.wikipedia.org/wiki/%D0%97%D0%BC%D1%96%D1%88%D0%B0%D0%BD%D0%B0_%D0%BC%D0%BE%D0%B4%D0%B5%D0%BB%D1%8C" title="Змішана модель – Ukrainian" lang="uk" hreflang="uk" data-title="Змішана модель" data-language-autonym="Українська" data-language-local-name="Ukrainian" class="interlanguage-link-target"><span>Українська</span></a></li><li class="interlanguage-link interwiki-zh-yue mw-list-item"><a href="https://zh-yue.wikipedia.org/wiki/%E6%B7%B7%E5%90%88%E6%A8%A1%E5%9E%8B" title="混合模型 – Cantonese" lang="yue" hreflang="yue" data-title="混合模型" data-language-autonym="粵語" data-language-local-name="Cantonese" class="interlanguage-link-target"><span>粵語</span></a></li> </ul> <div class="after-portlet after-portlet-lang"><span class="wb-langlinks-edit wb-langlinks-link"><a href="https://www.wikidata.org/wiki/Special:EntityPage/Q1501135#sitelinks-wikipedia" title="Edit interlanguage links" class="wbc-editpage">Edit links</a></span></div> </div> </div> </div> </header> <div class="vector-page-toolbar"> <div class="vector-page-toolbar-container"> <div id="left-navigation"> <nav aria-label="Namespaces"> <div id="p-associated-pages" class="vector-menu vector-menu-tabs mw-portlet mw-portlet-associated-pages" > <div class="vector-menu-content"> <ul class="vector-menu-content-list"> <li id="ca-nstab-main" class="selected vector-tab-noicon mw-list-item"><a href="/wiki/Mixed_model" title="View the content page [c]" accesskey="c"><span>Article</span></a></li><li id="ca-talk" class="vector-tab-noicon mw-list-item"><a href="/wiki/Talk:Mixed_model" rel="discussion" title="Discuss improvements to the content page [t]" accesskey="t"><span>Talk</span></a></li> </ul> </div> </div> <div id="vector-variants-dropdown" class="vector-dropdown emptyPortlet" > <input type="checkbox" id="vector-variants-dropdown-checkbox" role="button" aria-haspopup="true" data-event-name="ui.dropdown-vector-variants-dropdown" class="vector-dropdown-checkbox " aria-label="Change language variant" > <label id="vector-variants-dropdown-label" for="vector-variants-dropdown-checkbox" class="vector-dropdown-label cdx-button cdx-button--fake-button cdx-button--fake-button--enabled cdx-button--weight-quiet" aria-hidden="true" ><span class="vector-dropdown-label-text">English</span> </label> <div class="vector-dropdown-content"> <div id="p-variants" class="vector-menu mw-portlet mw-portlet-variants emptyPortlet" > <div class="vector-menu-content"> <ul class="vector-menu-content-list"> </ul> </div> </div> </div> </div> </nav> </div> <div id="right-navigation" class="vector-collapsible"> <nav aria-label="Views"> <div id="p-views" class="vector-menu vector-menu-tabs mw-portlet mw-portlet-views" > <div class="vector-menu-content"> <ul class="vector-menu-content-list"> <li id="ca-view" class="selected vector-tab-noicon mw-list-item"><a href="/wiki/Mixed_model"><span>Read</span></a></li><li id="ca-edit" class="vector-tab-noicon mw-list-item"><a href="/w/index.php?title=Mixed_model&action=edit" title="Edit this page [e]" accesskey="e"><span>Edit</span></a></li><li id="ca-history" class="vector-tab-noicon mw-list-item"><a href="/w/index.php?title=Mixed_model&action=history" title="Past revisions of this page [h]" accesskey="h"><span>View history</span></a></li> </ul> </div> </div> </nav> <nav class="vector-page-tools-landmark" aria-label="Page tools"> <div id="vector-page-tools-dropdown" class="vector-dropdown vector-page-tools-dropdown" > <input type="checkbox" id="vector-page-tools-dropdown-checkbox" role="button" aria-haspopup="true" data-event-name="ui.dropdown-vector-page-tools-dropdown" class="vector-dropdown-checkbox " aria-label="Tools" > <label id="vector-page-tools-dropdown-label" for="vector-page-tools-dropdown-checkbox" class="vector-dropdown-label cdx-button cdx-button--fake-button cdx-button--fake-button--enabled cdx-button--weight-quiet" aria-hidden="true" ><span class="vector-dropdown-label-text">Tools</span> </label> <div class="vector-dropdown-content"> <div id="vector-page-tools-unpinned-container" class="vector-unpinned-container"> <div id="vector-page-tools" class="vector-page-tools vector-pinnable-element"> <div class="vector-pinnable-header vector-page-tools-pinnable-header vector-pinnable-header-unpinned" data-feature-name="page-tools-pinned" data-pinnable-element-id="vector-page-tools" data-pinned-container-id="vector-page-tools-pinned-container" data-unpinned-container-id="vector-page-tools-unpinned-container" > <div class="vector-pinnable-header-label">Tools</div> <button class="vector-pinnable-header-toggle-button vector-pinnable-header-pin-button" data-event-name="pinnable-header.vector-page-tools.pin">move to sidebar</button> <button class="vector-pinnable-header-toggle-button vector-pinnable-header-unpin-button" data-event-name="pinnable-header.vector-page-tools.unpin">hide</button> </div> <div id="p-cactions" class="vector-menu mw-portlet mw-portlet-cactions emptyPortlet vector-has-collapsible-items" title="More options" > <div class="vector-menu-heading"> Actions </div> <div class="vector-menu-content"> <ul class="vector-menu-content-list"> <li id="ca-more-view" class="selected vector-more-collapsible-item mw-list-item"><a href="/wiki/Mixed_model"><span>Read</span></a></li><li id="ca-more-edit" class="vector-more-collapsible-item mw-list-item"><a href="/w/index.php?title=Mixed_model&action=edit" title="Edit this page [e]" accesskey="e"><span>Edit</span></a></li><li id="ca-more-history" class="vector-more-collapsible-item mw-list-item"><a href="/w/index.php?title=Mixed_model&action=history"><span>View history</span></a></li> </ul> </div> </div> <div id="p-tb" class="vector-menu mw-portlet mw-portlet-tb" > <div class="vector-menu-heading"> General </div> <div class="vector-menu-content"> <ul class="vector-menu-content-list"> <li id="t-whatlinkshere" class="mw-list-item"><a href="/wiki/Special:WhatLinksHere/Mixed_model" title="List of all English Wikipedia pages containing links to this page [j]" accesskey="j"><span>What links here</span></a></li><li id="t-recentchangeslinked" class="mw-list-item"><a href="/wiki/Special:RecentChangesLinked/Mixed_model" rel="nofollow" title="Recent changes in pages linked from this page [k]" accesskey="k"><span>Related changes</span></a></li><li id="t-upload" class="mw-list-item"><a href="//en.wikipedia.org/wiki/Wikipedia:File_Upload_Wizard" title="Upload files [u]" accesskey="u"><span>Upload file</span></a></li><li id="t-specialpages" class="mw-list-item"><a href="/wiki/Special:SpecialPages" title="A list of all special pages [q]" accesskey="q"><span>Special pages</span></a></li><li id="t-permalink" class="mw-list-item"><a href="/w/index.php?title=Mixed_model&oldid=1275088582" title="Permanent link to this revision of this page"><span>Permanent link</span></a></li><li id="t-info" class="mw-list-item"><a href="/w/index.php?title=Mixed_model&action=info" title="More information about this page"><span>Page information</span></a></li><li id="t-cite" class="mw-list-item"><a href="/w/index.php?title=Special:CiteThisPage&page=Mixed_model&id=1275088582&wpFormIdentifier=titleform" title="Information on how to cite this page"><span>Cite this page</span></a></li><li id="t-urlshortener" class="mw-list-item"><a href="/w/index.php?title=Special:UrlShortener&url=https%3A%2F%2Fen.wikipedia.org%2Fwiki%2FMixed_model"><span>Get shortened URL</span></a></li><li id="t-urlshortener-qrcode" class="mw-list-item"><a href="/w/index.php?title=Special:QrCode&url=https%3A%2F%2Fen.wikipedia.org%2Fwiki%2FMixed_model"><span>Download QR code</span></a></li> </ul> </div> </div> <div id="p-coll-print_export" class="vector-menu mw-portlet mw-portlet-coll-print_export" > <div class="vector-menu-heading"> Print/export </div> <div class="vector-menu-content"> <ul class="vector-menu-content-list"> <li id="coll-download-as-rl" class="mw-list-item"><a href="/w/index.php?title=Special:DownloadAsPdf&page=Mixed_model&action=show-download-screen" title="Download this page as a PDF file"><span>Download as PDF</span></a></li><li id="t-print" class="mw-list-item"><a href="/w/index.php?title=Mixed_model&printable=yes" title="Printable version of this page [p]" accesskey="p"><span>Printable version</span></a></li> </ul> </div> </div> <div id="p-wikibase-otherprojects" class="vector-menu mw-portlet mw-portlet-wikibase-otherprojects" > <div class="vector-menu-heading"> In other projects </div> <div class="vector-menu-content"> <ul class="vector-menu-content-list"> <li id="t-wikibase" class="wb-otherproject-link wb-otherproject-wikibase-dataitem mw-list-item"><a href="https://www.wikidata.org/wiki/Special:EntityPage/Q1501135" title="Structured data on this page hosted by Wikidata [g]" accesskey="g"><span>Wikidata item</span></a></li> </ul> </div> </div> </div> </div> </div> </div> </nav> </div> </div> </div> <div class="vector-column-end"> <div class="vector-sticky-pinned-container"> <nav class="vector-page-tools-landmark" aria-label="Page tools"> <div id="vector-page-tools-pinned-container" class="vector-pinned-container"> </div> </nav> <nav class="vector-appearance-landmark" aria-label="Appearance"> <div id="vector-appearance-pinned-container" class="vector-pinned-container"> <div id="vector-appearance" class="vector-appearance vector-pinnable-element"> <div class="vector-pinnable-header vector-appearance-pinnable-header vector-pinnable-header-pinned" data-feature-name="appearance-pinned" data-pinnable-element-id="vector-appearance" data-pinned-container-id="vector-appearance-pinned-container" data-unpinned-container-id="vector-appearance-unpinned-container" > <div class="vector-pinnable-header-label">Appearance</div> <button class="vector-pinnable-header-toggle-button vector-pinnable-header-pin-button" data-event-name="pinnable-header.vector-appearance.pin">move to sidebar</button> <button class="vector-pinnable-header-toggle-button vector-pinnable-header-unpin-button" data-event-name="pinnable-header.vector-appearance.unpin">hide</button> </div> </div> </div> </nav> </div> </div> <div id="bodyContent" class="vector-body" aria-labelledby="firstHeading" data-mw-ve-target-container> <div class="vector-body-before-content"> <div class="mw-indicators"> </div> <div id="siteSub" class="noprint">From Wikipedia, the free encyclopedia</div> </div> <div id="contentSub"><div id="mw-content-subtitle"></div></div> <div id="mw-content-text" class="mw-body-content"><div class="mw-content-ltr mw-parser-output" lang="en" dir="ltr"><div class="shortdescription nomobile noexcerpt noprint searchaux" style="display:none">Statistical model containing both fixed effects and random effects</div> <style data-mw-deduplicate="TemplateStyles:r1236090951">.mw-parser-output .hatnote{font-style:italic}.mw-parser-output div.hatnote{padding-left:1.6em;margin-bottom:0.5em}.mw-parser-output .hatnote i{font-style:normal}.mw-parser-output .hatnote+link+.hatnote{margin-top:-0.5em}@media print{body.ns-0 .mw-parser-output .hatnote{display:none!important}}</style><div role="note" class="hatnote navigation-not-searchable">Not to be confused with <a href="/wiki/Mixture_model" title="Mixture model">mixture model</a>.</div> <style data-mw-deduplicate="TemplateStyles:r1129693374">.mw-parser-output .hlist dl,.mw-parser-output .hlist ol,.mw-parser-output .hlist ul{margin:0;padding:0}.mw-parser-output .hlist dd,.mw-parser-output .hlist dt,.mw-parser-output .hlist li{margin:0;display:inline}.mw-parser-output .hlist.inline,.mw-parser-output .hlist.inline dl,.mw-parser-output .hlist.inline ol,.mw-parser-output .hlist.inline ul,.mw-parser-output .hlist dl dl,.mw-parser-output .hlist dl ol,.mw-parser-output .hlist dl ul,.mw-parser-output .hlist ol dl,.mw-parser-output .hlist ol ol,.mw-parser-output .hlist ol ul,.mw-parser-output .hlist ul dl,.mw-parser-output .hlist ul ol,.mw-parser-output .hlist ul ul{display:inline}.mw-parser-output .hlist .mw-empty-li{display:none}.mw-parser-output .hlist dt::after{content:": "}.mw-parser-output .hlist dd::after,.mw-parser-output .hlist li::after{content:" · ";font-weight:bold}.mw-parser-output .hlist dd:last-child::after,.mw-parser-output .hlist dt:last-child::after,.mw-parser-output .hlist li:last-child::after{content:none}.mw-parser-output .hlist dd dd:first-child::before,.mw-parser-output .hlist dd dt:first-child::before,.mw-parser-output .hlist dd li:first-child::before,.mw-parser-output .hlist dt dd:first-child::before,.mw-parser-output .hlist dt dt:first-child::before,.mw-parser-output .hlist dt li:first-child::before,.mw-parser-output .hlist li dd:first-child::before,.mw-parser-output .hlist li dt:first-child::before,.mw-parser-output .hlist li li:first-child::before{content:" (";font-weight:normal}.mw-parser-output .hlist dd dd:last-child::after,.mw-parser-output .hlist dd dt:last-child::after,.mw-parser-output .hlist dd li:last-child::after,.mw-parser-output .hlist dt dd:last-child::after,.mw-parser-output .hlist dt dt:last-child::after,.mw-parser-output .hlist dt li:last-child::after,.mw-parser-output .hlist li dd:last-child::after,.mw-parser-output .hlist li dt:last-child::after,.mw-parser-output .hlist li li:last-child::after{content:")";font-weight:normal}.mw-parser-output .hlist ol{counter-reset:listitem}.mw-parser-output .hlist ol>li{counter-increment:listitem}.mw-parser-output .hlist ol>li::before{content:" "counter(listitem)"\a0 "}.mw-parser-output .hlist dd ol>li:first-child::before,.mw-parser-output .hlist dt ol>li:first-child::before,.mw-parser-output .hlist li ol>li:first-child::before{content:" ("counter(listitem)"\a0 "}</style><style data-mw-deduplicate="TemplateStyles:r1246091330">.mw-parser-output .sidebar{width:22em;float:right;clear:right;margin:0.5em 0 1em 1em;background:var(--background-color-neutral-subtle,#f8f9fa);border:1px solid var(--border-color-base,#a2a9b1);padding:0.2em;text-align:center;line-height:1.4em;font-size:88%;border-collapse:collapse;display:table}body.skin-minerva .mw-parser-output .sidebar{display:table!important;float:right!important;margin:0.5em 0 1em 1em!important}.mw-parser-output .sidebar-subgroup{width:100%;margin:0;border-spacing:0}.mw-parser-output .sidebar-left{float:left;clear:left;margin:0.5em 1em 1em 0}.mw-parser-output .sidebar-none{float:none;clear:both;margin:0.5em 1em 1em 0}.mw-parser-output .sidebar-outer-title{padding:0 0.4em 0.2em;font-size:125%;line-height:1.2em;font-weight:bold}.mw-parser-output .sidebar-top-image{padding:0.4em}.mw-parser-output .sidebar-top-caption,.mw-parser-output .sidebar-pretitle-with-top-image,.mw-parser-output .sidebar-caption{padding:0.2em 0.4em 0;line-height:1.2em}.mw-parser-output .sidebar-pretitle{padding:0.4em 0.4em 0;line-height:1.2em}.mw-parser-output .sidebar-title,.mw-parser-output .sidebar-title-with-pretitle{padding:0.2em 0.8em;font-size:145%;line-height:1.2em}.mw-parser-output .sidebar-title-with-pretitle{padding:0.1em 0.4em}.mw-parser-output .sidebar-image{padding:0.2em 0.4em 0.4em}.mw-parser-output .sidebar-heading{padding:0.1em 0.4em}.mw-parser-output .sidebar-content{padding:0 0.5em 0.4em}.mw-parser-output .sidebar-content-with-subgroup{padding:0.1em 0.4em 0.2em}.mw-parser-output .sidebar-above,.mw-parser-output .sidebar-below{padding:0.3em 0.8em;font-weight:bold}.mw-parser-output .sidebar-collapse .sidebar-above,.mw-parser-output .sidebar-collapse .sidebar-below{border-top:1px solid #aaa;border-bottom:1px solid #aaa}.mw-parser-output .sidebar-navbar{text-align:right;font-size:115%;padding:0 0.4em 0.4em}.mw-parser-output .sidebar-list-title{padding:0 0.4em;text-align:left;font-weight:bold;line-height:1.6em;font-size:105%}.mw-parser-output .sidebar-list-title-c{padding:0 0.4em;text-align:center;margin:0 3.3em}@media(max-width:640px){body.mediawiki .mw-parser-output .sidebar{width:100%!important;clear:both;float:none!important;margin-left:0!important;margin-right:0!important}}body.skin--responsive .mw-parser-output .sidebar a>img{max-width:none!important}@media screen{html.skin-theme-clientpref-night .mw-parser-output .sidebar:not(.notheme) .sidebar-list-title,html.skin-theme-clientpref-night .mw-parser-output .sidebar:not(.notheme) .sidebar-title-with-pretitle{background:transparent!important}html.skin-theme-clientpref-night .mw-parser-output .sidebar:not(.notheme) .sidebar-title-with-pretitle a{color:var(--color-progressive)!important}}@media screen and (prefers-color-scheme:dark){html.skin-theme-clientpref-os .mw-parser-output .sidebar:not(.notheme) .sidebar-list-title,html.skin-theme-clientpref-os .mw-parser-output .sidebar:not(.notheme) .sidebar-title-with-pretitle{background:transparent!important}html.skin-theme-clientpref-os .mw-parser-output .sidebar:not(.notheme) .sidebar-title-with-pretitle a{color:var(--color-progressive)!important}}@media print{body.ns-0 .mw-parser-output .sidebar{display:none!important}}</style><table class="sidebar nomobile nowraplinks hlist"><tbody><tr><td class="sidebar-pretitle">Part of a series on</td></tr><tr><th class="sidebar-title-with-pretitle"><a href="/wiki/Regression_analysis" title="Regression analysis">Regression analysis</a></th></tr><tr><th class="sidebar-heading"> Models</th></tr><tr><td class="sidebar-content"> <ul><li><a href="/wiki/Linear_regression" title="Linear regression">Linear regression</a></li> <li><a href="/wiki/Simple_linear_regression" title="Simple linear regression">Simple regression</a></li> <li><a href="/wiki/Polynomial_regression" title="Polynomial regression">Polynomial regression</a></li> <li><a href="/wiki/General_linear_model" title="General linear model">General linear model</a></li></ul></td> </tr><tr><td class="sidebar-content"> <ul><li><a href="/wiki/Generalized_linear_model" title="Generalized linear model">Generalized linear model</a></li> <li><a href="/wiki/Vector_generalized_linear_model" title="Vector generalized linear model">Vector generalized linear model</a></li> <li><a href="/wiki/Discrete_choice" title="Discrete choice">Discrete choice</a></li> <li><a href="/wiki/Binomial_regression" title="Binomial regression">Binomial regression</a></li> <li><a href="/wiki/Binary_regression" title="Binary regression">Binary regression</a></li> <li><a href="/wiki/Logistic_regression" title="Logistic regression">Logistic regression</a></li> <li><a href="/wiki/Multinomial_logistic_regression" title="Multinomial logistic regression">Multinomial logistic regression</a></li> <li><a href="/wiki/Mixed_logit" title="Mixed logit">Mixed logit</a></li> <li><a href="/wiki/Probit_model" title="Probit model">Probit</a></li> <li><a href="/wiki/Multinomial_probit" title="Multinomial probit">Multinomial probit</a></li> <li><a href="/wiki/Ordered_logit" title="Ordered logit">Ordered logit</a></li> <li><a href="/wiki/Ordered_probit" class="mw-redirect" title="Ordered probit">Ordered probit</a></li> <li><a href="/wiki/Poisson_regression" title="Poisson regression">Poisson</a></li></ul></td> </tr><tr><td class="sidebar-content"> <ul><li><a href="/wiki/Multilevel_model" title="Multilevel model">Multilevel model</a></li> <li><a href="/wiki/Fixed_effects_model" title="Fixed effects model">Fixed effects</a></li> <li><a href="/wiki/Random_effects_model" title="Random effects model">Random effects</a></li> <li><a class="mw-selflink selflink">Linear mixed-effects model</a></li> <li><a href="/wiki/Nonlinear_mixed-effects_model" title="Nonlinear mixed-effects model">Nonlinear mixed-effects model</a></li></ul></td> </tr><tr><td class="sidebar-content"> <ul><li><a href="/wiki/Nonlinear_regression" title="Nonlinear regression">Nonlinear regression</a></li> <li><a href="/wiki/Nonparametric_regression" title="Nonparametric regression">Nonparametric</a></li> <li><a href="/wiki/Semiparametric_regression" title="Semiparametric regression">Semiparametric</a></li> <li><a href="/wiki/Robust_regression" title="Robust regression">Robust</a></li> <li><a href="/wiki/Quantile_regression" title="Quantile regression">Quantile</a></li> <li><a href="/wiki/Isotonic_regression" title="Isotonic regression">Isotonic</a></li> <li><a href="/wiki/Principal_component_regression" title="Principal component regression">Principal components</a></li> <li><a href="/wiki/Least-angle_regression" title="Least-angle regression">Least angle</a></li> <li><a href="/wiki/Local_regression" title="Local regression">Local</a></li> <li><a href="/wiki/Segmented_regression" title="Segmented regression">Segmented</a></li></ul></td> </tr><tr><td class="sidebar-content"> <ul><li><a href="/wiki/Errors-in-variables_models" class="mw-redirect" title="Errors-in-variables models">Errors-in-variables</a></li></ul></td> </tr><tr><th class="sidebar-heading"> Estimation</th></tr><tr><td class="sidebar-content"> <ul><li><a href="/wiki/Least_squares" title="Least squares">Least squares</a></li> <li><a href="/wiki/Linear_least_squares" title="Linear least squares">Linear</a></li> <li><a href="/wiki/Non-linear_least_squares" title="Non-linear least squares">Non-linear</a></li></ul></td> </tr><tr><td class="sidebar-content"> <ul><li><a href="/wiki/Ordinary_least_squares" title="Ordinary least squares">Ordinary</a></li> <li><a href="/wiki/Weighted_least_squares" title="Weighted least squares">Weighted</a></li> <li><a href="/wiki/Generalized_least_squares" title="Generalized least squares">Generalized</a></li> <li><a href="/wiki/Generalized_estimating_equation" title="Generalized estimating equation">Generalized estimating equation</a></li></ul></td> </tr><tr><td class="sidebar-content"> <ul><li><a href="/wiki/Partial_least_squares_regression" title="Partial least squares regression">Partial</a></li> <li><a href="/wiki/Total_least_squares" title="Total least squares">Total</a></li> <li><a href="/wiki/Non-negative_least_squares" title="Non-negative least squares">Non-negative</a></li> <li><a href="/wiki/Tikhonov_regularization" class="mw-redirect" title="Tikhonov regularization">Ridge regression</a></li> <li><a href="/wiki/Regularized_least_squares" title="Regularized least squares">Regularized</a></li></ul></td> </tr><tr><td class="sidebar-content"> <ul><li><a href="/wiki/Least_absolute_deviations" title="Least absolute deviations">Least absolute deviations</a></li> <li><a href="/wiki/Iteratively_reweighted_least_squares" title="Iteratively reweighted least squares">Iteratively reweighted</a></li> <li><a href="/wiki/Bayesian_linear_regression" title="Bayesian linear regression">Bayesian</a></li> <li><a href="/wiki/Bayesian_multivariate_linear_regression" title="Bayesian multivariate linear regression">Bayesian multivariate</a></li> <li><a href="/wiki/Least-squares_spectral_analysis" title="Least-squares spectral analysis">Least-squares spectral analysis</a></li></ul></td> </tr><tr><th class="sidebar-heading"> Background</th></tr><tr><td class="sidebar-content"> <ul><li><a href="/wiki/Regression_validation" title="Regression validation">Regression validation</a></li> <li><a href="/wiki/Mean_and_predicted_response" class="mw-redirect" title="Mean and predicted response">Mean and predicted response</a></li> <li><a href="/wiki/Errors_and_residuals" title="Errors and residuals">Errors and residuals</a></li> <li><a href="/wiki/Goodness_of_fit" title="Goodness of fit">Goodness of fit</a></li> <li><a href="/wiki/Studentized_residual" title="Studentized residual">Studentized residual</a></li> <li><a href="/wiki/Gauss%E2%80%93Markov_theorem" title="Gauss–Markov theorem">Gauss–Markov theorem</a></li></ul></td> </tr><tr><td class="sidebar-below"> <ul><li><span class="nowrap"><span class="noviewer" typeof="mw:File"><a href="/wiki/File:Nuvola_apps_edu_mathematics_blue-p.svg" class="mw-file-description"><img alt="icon" src="//upload.wikimedia.org/wikipedia/commons/thumb/3/3e/Nuvola_apps_edu_mathematics_blue-p.svg/28px-Nuvola_apps_edu_mathematics_blue-p.svg.png" decoding="async" width="28" height="28" class="mw-file-element" srcset="//upload.wikimedia.org/wikipedia/commons/thumb/3/3e/Nuvola_apps_edu_mathematics_blue-p.svg/42px-Nuvola_apps_edu_mathematics_blue-p.svg.png 1.5x, //upload.wikimedia.org/wikipedia/commons/thumb/3/3e/Nuvola_apps_edu_mathematics_blue-p.svg/56px-Nuvola_apps_edu_mathematics_blue-p.svg.png 2x" data-file-width="128" data-file-height="128" /></a></span> </span><a href="/wiki/Portal:Mathematics" title="Portal:Mathematics">Mathematics portal</a></li></ul></td></tr><tr><td class="sidebar-navbar"><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1129693374"><style data-mw-deduplicate="TemplateStyles:r1239400231">.mw-parser-output .navbar{display:inline;font-size:88%;font-weight:normal}.mw-parser-output .navbar-collapse{float:left;text-align:left}.mw-parser-output .navbar-boxtext{word-spacing:0}.mw-parser-output .navbar ul{display:inline-block;white-space:nowrap;line-height:inherit}.mw-parser-output .navbar-brackets::before{margin-right:-0.125em;content:"[ "}.mw-parser-output .navbar-brackets::after{margin-left:-0.125em;content:" ]"}.mw-parser-output .navbar li{word-spacing:-0.125em}.mw-parser-output .navbar a>span,.mw-parser-output .navbar a>abbr{text-decoration:inherit}.mw-parser-output .navbar-mini abbr{font-variant:small-caps;border-bottom:none;text-decoration:none;cursor:inherit}.mw-parser-output .navbar-ct-full{font-size:114%;margin:0 7em}.mw-parser-output .navbar-ct-mini{font-size:114%;margin:0 4em}html.skin-theme-clientpref-night .mw-parser-output .navbar li a abbr{color:var(--color-base)!important}@media(prefers-color-scheme:dark){html.skin-theme-clientpref-os .mw-parser-output .navbar li a abbr{color:var(--color-base)!important}}@media print{.mw-parser-output .navbar{display:none!important}}</style><div class="navbar plainlinks hlist navbar-mini"><ul><li class="nv-view"><a href="/wiki/Template:Regression_bar" title="Template:Regression bar"><abbr title="View this template">v</abbr></a></li><li class="nv-talk"><a href="/wiki/Template_talk:Regression_bar" title="Template talk:Regression bar"><abbr title="Discuss this template">t</abbr></a></li><li class="nv-edit"><a href="/wiki/Special:EditPage/Template:Regression_bar" title="Special:EditPage/Template:Regression bar"><abbr title="Edit this template">e</abbr></a></li></ul></div></td></tr></tbody></table> <p>A <b>mixed model</b>, <b>mixed-effects model</b> or <b>mixed error-component model</b> is a <a href="/wiki/Statistical_model" title="Statistical model">statistical model</a> containing both <a href="/wiki/Fixed_effect" class="mw-redirect" title="Fixed effect">fixed effects</a> and <a href="/wiki/Random_effect" class="mw-redirect" title="Random effect">random effects</a>.<sup id="cite_ref-1" class="reference"><a href="#cite_note-1"><span class="cite-bracket">[</span>1<span class="cite-bracket">]</span></a></sup><sup id="cite_ref-Gomes2022_2-0" class="reference"><a href="#cite_note-Gomes2022-2"><span class="cite-bracket">[</span>2<span class="cite-bracket">]</span></a></sup> These models are useful in a wide variety of disciplines in the physical, biological and social sciences. They are particularly useful in settings where <a href="/wiki/Repeated_measures_design" title="Repeated measures design">repeated measurements</a> are made on the same <a href="/wiki/Statistical_unit" title="Statistical unit">statistical units</a> (see also <a href="/wiki/Longitudinal_study" title="Longitudinal study">longitudinal study</a>), or where measurements are made on clusters of related statistical units.<sup id="cite_ref-Gomes2022_2-1" class="reference"><a href="#cite_note-Gomes2022-2"><span class="cite-bracket">[</span>2<span class="cite-bracket">]</span></a></sup> Mixed models are often preferred over traditional <a href="/wiki/Analysis_of_variance" title="Analysis of variance">analysis of variance</a> regression models because they don't rely on the independent observations assumption. Further, they have their flexibility in dealing with missing values and uneven spacing of repeated measurements.<sup id="cite_ref-3" class="reference"><a href="#cite_note-3"><span class="cite-bracket">[</span>3<span class="cite-bracket">]</span></a></sup> The Mixed model analysis allows measurements to be explicitly modeled in a wider variety of <a href="/wiki/Correlation" title="Correlation">correlation</a> and <a href="/wiki/Variance" title="Variance">variance</a>-<a href="/wiki/Covariance" title="Covariance">covariance</a> <a href="/wiki/Variance" title="Variance">avoiding biased estimations</a> structures. </p><p>This page will discuss mainly <b>linear mixed-effects models</b> rather than <a href="/wiki/Generalized_linear_mixed_model" title="Generalized linear mixed model">generalized linear mixed models</a> or <a href="/wiki/Nonlinear_mixed-effects_model" title="Nonlinear mixed-effects model">nonlinear mixed-effects models</a>.<sup id="cite_ref-:0_4-0" class="reference"><a href="#cite_note-:0-4"><span class="cite-bracket">[</span>4<span class="cite-bracket">]</span></a></sup> </p> <meta property="mw:PageProp/toc" /> <div class="mw-heading mw-heading2"><h2 id="Qualitative_Description">Qualitative Description</h2><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=Mixed_model&action=edit&section=1" title="Edit section: Qualitative Description"><span>edit</span></a><span class="mw-editsection-bracket">]</span></span></div> <p>Linear mixed models (LMMs) are <a href="/wiki/Statistical_models" class="mw-redirect" title="Statistical models">statistical models</a> that incorporate <a href="/wiki/Fixed_effects" class="mw-redirect" title="Fixed effects">fixed</a> and <a href="/wiki/Random_effects" class="mw-redirect" title="Random effects">random effects</a> to accurately represent non-independent data structures. LMM is an alternative to <a href="/wiki/Analysis_of_variance" title="Analysis of variance">analysis of variance</a>. Often, ANOVA assumes the <a href="/wiki/Independence" title="Independence">independence</a> of observations within each group, however, this assumption may not hold in non-independent data, such as multilevel/<a href="/wiki/Hierarchical" class="mw-redirect" title="Hierarchical">hierarchical</a>, <a href="/wiki/Longitudinal_study" title="Longitudinal study">longitudinal</a>, or <a href="/wiki/Correlated" class="mw-redirect" title="Correlated">correlated</a> datasets. </p><p>Non-independent sets are ones in which the variability between outcomes is due to correlations within groups or between groups. Mixed models properly account for <a href="/wiki/Nesting_(computing)" title="Nesting (computing)">nest</a> structures/hierarchical data structures where observations are influenced by their nested associations. For example, when studying education methods involving multiple schools, there are multiple levels of variables to consider. The individual level/lower level comprises individual students or teachers within the school. The observations obtained from this student/teacher is nested within their school. For example, Student A is a unit within the School A. The next higher level is the school. At the higher level, the school contains multiple individual students and teachers. The school level influences the observations obtained from the students and teachers. For Example, School A and School B are the higher levels each with its set of Student A and Student B respectively. This represents a hierarchical data scheme. A solution to modeling hierarchical data is using linear mixed models. </p> <figure typeof="mw:File/Thumb"><a href="/wiki/File:Heiarchial_Data_Strucutre_Education.jpg" class="mw-file-description"><img src="//upload.wikimedia.org/wikipedia/commons/thumb/6/6d/Heiarchial_Data_Strucutre_Education.jpg/376px-Heiarchial_Data_Strucutre_Education.jpg" decoding="async" width="376" height="220" class="mw-file-element" srcset="//upload.wikimedia.org/wikipedia/commons/thumb/6/6d/Heiarchial_Data_Strucutre_Education.jpg/564px-Heiarchial_Data_Strucutre_Education.jpg 1.5x, //upload.wikimedia.org/wikipedia/commons/thumb/6/6d/Heiarchial_Data_Strucutre_Education.jpg/752px-Heiarchial_Data_Strucutre_Education.jpg 2x" data-file-width="1327" data-file-height="778" /></a><figcaption>Representation of how data, related to education system, is non-independent and structured in nested/hierarchical levels.</figcaption></figure> <p>LMMs allow us to understand the important effects between and within levels while incorporating the corrections for standard errors for non-independence embedded in the data structure.<sup id="cite_ref-:0_4-1" class="reference"><a href="#cite_note-:0-4"><span class="cite-bracket">[</span>4<span class="cite-bracket">]</span></a></sup><sup id="cite_ref-:4_5-0" class="reference"><a href="#cite_note-:4-5"><span class="cite-bracket">[</span>5<span class="cite-bracket">]</span></a></sup> In experimental fields such as social psychology, psycholinguistics, cognitive psychology (and neuroscience), where studies often involve multiple grouping variables, failing to account for random effects can lead to inflated Type I error rates and unreliable conclusions.<sup id="cite_ref-6" class="reference"><a href="#cite_note-6"><span class="cite-bracket">[</span>6<span class="cite-bracket">]</span></a></sup><sup id="cite_ref-7" class="reference"><a href="#cite_note-7"><span class="cite-bracket">[</span>7<span class="cite-bracket">]</span></a></sup> For instance, when analyzing data from experiments that involve both samples of participants and samples of stimuli (e.g., images, scenarios, etc.), ignoring variation in either of these grouping variables (e.g., by averaging over stimuli) can result in misleading conclusions. In such cases, researchers can instead treat both participant and stimulus as random effects with LMMs, and in doing so, can correctly account for the variation in their data across multiple grouping variables. Similarly, when analyzing data from comparative longitudinal surveys, failing to include random effects at all relevant levels—such as country and country-year—can significantly distort the results.<sup id="cite_ref-8" class="reference"><a href="#cite_note-8"><span class="cite-bracket">[</span>8<span class="cite-bracket">]</span></a></sup> </p> <div class="mw-heading mw-heading3"><h3 id="The_Fixed_Effect">The Fixed Effect</h3><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=Mixed_model&action=edit&section=2" title="Edit section: The Fixed Effect"><span>edit</span></a><span class="mw-editsection-bracket">]</span></span></div> <p>Fixed effects encapsulate the tendencies/trends that are consistent at the levels of primary interest. These effects are considered fixed because they are non-random and assumed to be constant for the population being studied.<sup id="cite_ref-:4_5-1" class="reference"><a href="#cite_note-:4-5"><span class="cite-bracket">[</span>5<span class="cite-bracket">]</span></a></sup> For example, when studying education a fixed effect could represent overall school level effects that are consistent across all schools. </p><p>While the hierarchy of the data set is typically obvious, the specific fixed effects that affect the average responses for all subjects must be specified. Some fixed effect coefficients are sufficient without corresponding random effects where as other fixed coefficients only represent an average where the individual units are random. These may be determined by incorporating random <a href="/wiki/Y-intercept" title="Y-intercept">intercepts</a> and <a href="/wiki/Slopes" class="mw-redirect" title="Slopes">slopes</a>.<sup id="cite_ref-:1_9-0" class="reference"><a href="#cite_note-:1-9"><span class="cite-bracket">[</span>9<span class="cite-bracket">]</span></a></sup><sup id="cite_ref-:2_10-0" class="reference"><a href="#cite_note-:2-10"><span class="cite-bracket">[</span>10<span class="cite-bracket">]</span></a></sup><sup id="cite_ref-:3_11-0" class="reference"><a href="#cite_note-:3-11"><span class="cite-bracket">[</span>11<span class="cite-bracket">]</span></a></sup> </p><p>In most situations, several related models are considered and the model that best represents a universal model is adopted. </p> <div class="mw-heading mw-heading3"><h3 id="The_Random_Effect,_ε"><span id="The_Random_Effect.2C_.CE.B5"></span>The Random Effect, ε</h3><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=Mixed_model&action=edit&section=3" title="Edit section: The Random Effect, ε"><span>edit</span></a><span class="mw-editsection-bracket">]</span></span></div> <p>A key component of the mixed model is the incorporation of random effects with the fixed effect. Fixed effects are often fitted to represent the underlying model. In Linear mixed models, the true <a href="/wiki/Linear_regression" title="Linear regression">regression</a> of the population is linear, β. The fixed data is fitted at the highest level. Random effects introduce <a href="/wiki/Statistical_variability" class="mw-redirect" title="Statistical variability">statistical variability</a> at different levels of the data hierarchy. These account for the unmeasured sources of variance that affect certain groups in the data. For example, the differences between student 1 and student 2 in the same class, or the differences between class 1 and class 2 in the same school.  <sup id="cite_ref-:1_9-1" class="reference"><a href="#cite_note-:1-9"><span class="cite-bracket">[</span>9<span class="cite-bracket">]</span></a></sup><sup id="cite_ref-:2_10-1" class="reference"><a href="#cite_note-:2-10"><span class="cite-bracket">[</span>10<span class="cite-bracket">]</span></a></sup><sup id="cite_ref-:3_11-1" class="reference"><a href="#cite_note-:3-11"><span class="cite-bracket">[</span>11<span class="cite-bracket">]</span></a></sup> </p> <div class="mw-heading mw-heading2"><h2 id="History_and_current_status">History and current status</h2><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=Mixed_model&action=edit&section=4" title="Edit section: History and current status"><span>edit</span></a><span class="mw-editsection-bracket">]</span></span></div> <figure typeof="mw:File/Thumb"><a href="/wiki/File:Bias_described_using_LMM.jpg" class="mw-file-description"><img src="//upload.wikimedia.org/wikipedia/commons/thumb/c/c7/Bias_described_using_LMM.jpg/235px-Bias_described_using_LMM.jpg" decoding="async" width="235" height="606" class="mw-file-element" srcset="//upload.wikimedia.org/wikipedia/commons/c/c7/Bias_described_using_LMM.jpg 1.5x" data-file-width="242" data-file-height="623" /></a><figcaption>Representation of biased vs. unbiased data and the differences between fitted estimates using least squares regression (LSR) and a linear mixed model (LMM).</figcaption></figure> <p><a href="/wiki/Ronald_Fisher" title="Ronald Fisher">Ronald Fisher</a> introduced <a href="/wiki/Random_effects_model" title="Random effects model">random effects models</a> to study the correlations of trait values between relatives.<sup id="cite_ref-12" class="reference"><a href="#cite_note-12"><span class="cite-bracket">[</span>12<span class="cite-bracket">]</span></a></sup> In the 1950s, <a href="/wiki/Charles_Roy_Henderson" title="Charles Roy Henderson">Charles Roy Henderson</a> provided <a href="/wiki/Gauss%E2%80%93Markov_theorem" title="Gauss–Markov theorem">best linear unbiased estimates</a> of <a href="/wiki/Fixed_effects_estimator" class="mw-redirect" title="Fixed effects estimator">fixed effects</a> and <a href="/wiki/Best_linear_unbiased_prediction" title="Best linear unbiased prediction">best linear unbiased predictions</a> of random effects.<sup id="cite_ref-GKR1991_13-0" class="reference"><a href="#cite_note-GKR1991-13"><span class="cite-bracket">[</span>13<span class="cite-bracket">]</span></a></sup><sup id="cite_ref-14" class="reference"><a href="#cite_note-14"><span class="cite-bracket">[</span>14<span class="cite-bracket">]</span></a></sup><sup id="cite_ref-LDVV1989_15-0" class="reference"><a href="#cite_note-LDVV1989-15"><span class="cite-bracket">[</span>15<span class="cite-bracket">]</span></a></sup><sup id="cite_ref-16" class="reference"><a href="#cite_note-16"><span class="cite-bracket">[</span>16<span class="cite-bracket">]</span></a></sup> Subsequently, mixed modeling has become a major area of statistical research, including work on computation of maximum likelihood estimates, non-linear mixed effects models, missing data in mixed effects models, and <a href="/wiki/Bayesian_statistics" title="Bayesian statistics">Bayesian</a> estimation of mixed effects models. Mixed models are applied in many disciplines where multiple correlated measurements are made on each unit of interest. They are prominently used in research involving human and animal subjects in fields ranging from genetics to marketing, and have also been used in baseball <sup id="cite_ref-17" class="reference"><a href="#cite_note-17"><span class="cite-bracket">[</span>17<span class="cite-bracket">]</span></a></sup> and industrial statistics.<sup id="cite_ref-18" class="reference"><a href="#cite_note-18"><span class="cite-bracket">[</span>18<span class="cite-bracket">]</span></a></sup> The mixed linear model association has improved the prevention of false positive associations. Populations are deeply interconnected and the relatedness structure of population dynamics is extremely difficult to model without the use of mixed models. Linear mixed models may not, however, be the only solution. LMM's have a constant-<a href="/wiki/Residual_(statistics)" class="mw-redirect" title="Residual (statistics)">residual</a> <a href="/wiki/Variance" title="Variance">variance</a> assumption that is sometimes violated when accounting for deeply associated <a href="/wiki/Continuous_probability_distribution" class="mw-redirect" title="Continuous probability distribution">continuous</a> and <a href="/wiki/Binary_function" title="Binary function">binary</a> traits.<sup id="cite_ref-19" class="reference"><a href="#cite_note-19"><span class="cite-bracket">[</span>19<span class="cite-bracket">]</span></a></sup> </p> <div class="mw-heading mw-heading2"><h2 id="Definition">Definition</h2><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=Mixed_model&action=edit&section=5" title="Edit section: Definition"><span>edit</span></a><span class="mw-editsection-bracket">]</span></span></div> <p>In <a href="/wiki/Matrix_notation#Notation" class="mw-redirect" title="Matrix notation">matrix notation</a> a linear mixed model can be represented as </p> <dl><dd><span class="mwe-math-element"><span class="mwe-math-mathml-inline mwe-math-mathml-a11y" style="display: none;"><math xmlns="http://www.w3.org/1998/Math/MathML" alttext="{\displaystyle {\boldsymbol {y}}=X{\boldsymbol {\beta }}+Z{\boldsymbol {u}}+{\boldsymbol {\epsilon }}}"> <semantics> <mrow class="MJX-TeXAtom-ORD"> <mstyle displaystyle="true" scriptlevel="0"> <mrow class="MJX-TeXAtom-ORD"> <mi mathvariant="bold-italic">y</mi> </mrow> <mo>=</mo> <mi>X</mi> <mrow class="MJX-TeXAtom-ORD"> <mi mathvariant="bold-italic">β<!-- β --></mi> </mrow> <mo>+</mo> <mi>Z</mi> <mrow class="MJX-TeXAtom-ORD"> <mi mathvariant="bold-italic">u</mi> </mrow> <mo>+</mo> <mrow class="MJX-TeXAtom-ORD"> <mi mathvariant="bold-italic">ϵ<!-- ϵ --></mi> </mrow> </mstyle> </mrow> <annotation encoding="application/x-tex">{\displaystyle {\boldsymbol {y}}=X{\boldsymbol {\beta }}+Z{\boldsymbol {u}}+{\boldsymbol {\epsilon }}}</annotation> </semantics> </math></span><img src="https://wikimedia.org/api/rest_v1/media/math/render/svg/e00ba9a8e13237ca374d55bb3070aebd12a5b8e4" class="mwe-math-fallback-image-inline mw-invert skin-invert" aria-hidden="true" style="vertical-align: -0.671ex; width:18.051ex; height:2.509ex;" alt="{\displaystyle {\boldsymbol {y}}=X{\boldsymbol {\beta }}+Z{\boldsymbol {u}}+{\boldsymbol {\epsilon }}}"></span></dd></dl> <p>where </p> <ul><li><span class="mwe-math-element"><span class="mwe-math-mathml-inline mwe-math-mathml-a11y" style="display: none;"><math xmlns="http://www.w3.org/1998/Math/MathML" alttext="{\displaystyle {\boldsymbol {y}}}"> <semantics> <mrow class="MJX-TeXAtom-ORD"> <mstyle displaystyle="true" scriptlevel="0"> <mrow class="MJX-TeXAtom-ORD"> <mi mathvariant="bold-italic">y</mi> </mrow> </mstyle> </mrow> <annotation encoding="application/x-tex">{\displaystyle {\boldsymbol {y}}}</annotation> </semantics> </math></span><img src="https://wikimedia.org/api/rest_v1/media/math/render/svg/ca3ae71d44145d721c4b15d442e03005e5ea9850" class="mwe-math-fallback-image-inline mw-invert skin-invert" aria-hidden="true" style="vertical-align: -0.671ex; width:1.371ex; height:2.009ex;" alt="{\displaystyle {\boldsymbol {y}}}"></span> is a known vector of observations, with mean <span class="mwe-math-element"><span class="mwe-math-mathml-inline mwe-math-mathml-a11y" style="display: none;"><math xmlns="http://www.w3.org/1998/Math/MathML" alttext="{\displaystyle E({\boldsymbol {y}})=X{\boldsymbol {\beta }}}"> <semantics> <mrow class="MJX-TeXAtom-ORD"> <mstyle displaystyle="true" scriptlevel="0"> <mi>E</mi> <mo stretchy="false">(</mo> <mrow class="MJX-TeXAtom-ORD"> <mi mathvariant="bold-italic">y</mi> </mrow> <mo stretchy="false">)</mo> <mo>=</mo> <mi>X</mi> <mrow class="MJX-TeXAtom-ORD"> <mi mathvariant="bold-italic">β<!-- β --></mi> </mrow> </mstyle> </mrow> <annotation encoding="application/x-tex">{\displaystyle E({\boldsymbol {y}})=X{\boldsymbol {\beta }}}</annotation> </semantics> </math></span><img src="https://wikimedia.org/api/rest_v1/media/math/render/svg/e80868378849f4243dd83136dbcd55f5bae55a0a" class="mwe-math-fallback-image-inline mw-invert skin-invert" aria-hidden="true" style="vertical-align: -0.838ex; width:11.569ex; height:2.843ex;" alt="{\displaystyle E({\boldsymbol {y}})=X{\boldsymbol {\beta }}}"></span>;</li> <li><span class="mwe-math-element"><span class="mwe-math-mathml-inline mwe-math-mathml-a11y" style="display: none;"><math xmlns="http://www.w3.org/1998/Math/MathML" alttext="{\displaystyle {\boldsymbol {\beta }}}"> <semantics> <mrow class="MJX-TeXAtom-ORD"> <mstyle displaystyle="true" scriptlevel="0"> <mrow class="MJX-TeXAtom-ORD"> <mi mathvariant="bold-italic">β<!-- β --></mi> </mrow> </mstyle> </mrow> <annotation encoding="application/x-tex">{\displaystyle {\boldsymbol {\beta }}}</annotation> </semantics> </math></span><img src="https://wikimedia.org/api/rest_v1/media/math/render/svg/702cafc420cc00c54896f6d125112820956aaf6b" class="mwe-math-fallback-image-inline mw-invert skin-invert" aria-hidden="true" style="vertical-align: -0.671ex; width:1.534ex; height:2.509ex;" alt="{\displaystyle {\boldsymbol {\beta }}}"></span> is an unknown vector of fixed effects;</li> <li><span class="mwe-math-element"><span class="mwe-math-mathml-inline mwe-math-mathml-a11y" style="display: none;"><math xmlns="http://www.w3.org/1998/Math/MathML" alttext="{\displaystyle {\boldsymbol {u}}}"> <semantics> <mrow class="MJX-TeXAtom-ORD"> <mstyle displaystyle="true" scriptlevel="0"> <mrow class="MJX-TeXAtom-ORD"> <mi mathvariant="bold-italic">u</mi> </mrow> </mstyle> </mrow> <annotation encoding="application/x-tex">{\displaystyle {\boldsymbol {u}}}</annotation> </semantics> </math></span><img src="https://wikimedia.org/api/rest_v1/media/math/render/svg/3d60e374e33b2c1d75888c0e8759f9e770e718f7" class="mwe-math-fallback-image-inline mw-invert skin-invert" aria-hidden="true" style="vertical-align: -0.338ex; width:1.583ex; height:1.676ex;" alt="{\displaystyle {\boldsymbol {u}}}"></span> is an unknown vector of random effects, with mean <span class="mwe-math-element"><span class="mwe-math-mathml-inline mwe-math-mathml-a11y" style="display: none;"><math xmlns="http://www.w3.org/1998/Math/MathML" alttext="{\displaystyle E({\boldsymbol {u}})={\boldsymbol {0}}}"> <semantics> <mrow class="MJX-TeXAtom-ORD"> <mstyle displaystyle="true" scriptlevel="0"> <mi>E</mi> <mo stretchy="false">(</mo> <mrow class="MJX-TeXAtom-ORD"> <mi mathvariant="bold-italic">u</mi> </mrow> <mo stretchy="false">)</mo> <mo>=</mo> <mrow class="MJX-TeXAtom-ORD"> <mn mathvariant="bold">0</mn> </mrow> </mstyle> </mrow> <annotation encoding="application/x-tex">{\displaystyle E({\boldsymbol {u}})={\boldsymbol {0}}}</annotation> </semantics> </math></span><img src="https://wikimedia.org/api/rest_v1/media/math/render/svg/0fc9b89cf3bf8af31f308b852232ea1e164e06ec" class="mwe-math-fallback-image-inline mw-invert skin-invert" aria-hidden="true" style="vertical-align: -0.838ex; width:9.603ex; height:2.843ex;" alt="{\displaystyle E({\boldsymbol {u}})={\boldsymbol {0}}}"></span> and <a href="/wiki/Covariance_matrix" title="Covariance matrix">variance–covariance matrix</a> <span class="mwe-math-element"><span class="mwe-math-mathml-inline mwe-math-mathml-a11y" style="display: none;"><math xmlns="http://www.w3.org/1998/Math/MathML" alttext="{\displaystyle \operatorname {var} ({\boldsymbol {u}})=G}"> <semantics> <mrow class="MJX-TeXAtom-ORD"> <mstyle displaystyle="true" scriptlevel="0"> <mi>var</mi> <mo>⁡<!-- --></mo> <mo stretchy="false">(</mo> <mrow class="MJX-TeXAtom-ORD"> <mi mathvariant="bold-italic">u</mi> </mrow> <mo stretchy="false">)</mo> <mo>=</mo> <mi>G</mi> </mstyle> </mrow> <annotation encoding="application/x-tex">{\displaystyle \operatorname {var} ({\boldsymbol {u}})=G}</annotation> </semantics> </math></span><img src="https://wikimedia.org/api/rest_v1/media/math/render/svg/92e7197d495b985e3b4908e414ecb60ef3d58d8b" class="mwe-math-fallback-image-inline mw-invert skin-invert" aria-hidden="true" style="vertical-align: -0.838ex; width:11.619ex; height:2.843ex;" alt="{\displaystyle \operatorname {var} ({\boldsymbol {u}})=G}"></span>;</li> <li><span class="mwe-math-element"><span class="mwe-math-mathml-inline mwe-math-mathml-a11y" style="display: none;"><math xmlns="http://www.w3.org/1998/Math/MathML" alttext="{\displaystyle {\boldsymbol {\epsilon }}}"> <semantics> <mrow class="MJX-TeXAtom-ORD"> <mstyle displaystyle="true" scriptlevel="0"> <mrow class="MJX-TeXAtom-ORD"> <mi mathvariant="bold-italic">ϵ<!-- ϵ --></mi> </mrow> </mstyle> </mrow> <annotation encoding="application/x-tex">{\displaystyle {\boldsymbol {\epsilon }}}</annotation> </semantics> </math></span><img src="https://wikimedia.org/api/rest_v1/media/math/render/svg/be3ff7747cde11092061b1cf99a03eb19bfeba31" class="mwe-math-fallback-image-inline mw-invert skin-invert" aria-hidden="true" style="vertical-align: -0.338ex; width:1.123ex; height:1.676ex;" alt="{\displaystyle {\boldsymbol {\epsilon }}}"></span> is an unknown vector of random errors, with mean <span class="mwe-math-element"><span class="mwe-math-mathml-inline mwe-math-mathml-a11y" style="display: none;"><math xmlns="http://www.w3.org/1998/Math/MathML" alttext="{\displaystyle E({\boldsymbol {\epsilon }})={\boldsymbol {0}}}"> <semantics> <mrow class="MJX-TeXAtom-ORD"> <mstyle displaystyle="true" scriptlevel="0"> <mi>E</mi> <mo stretchy="false">(</mo> <mrow class="MJX-TeXAtom-ORD"> <mi mathvariant="bold-italic">ϵ<!-- ϵ --></mi> </mrow> <mo stretchy="false">)</mo> <mo>=</mo> <mrow class="MJX-TeXAtom-ORD"> <mn mathvariant="bold">0</mn> </mrow> </mstyle> </mrow> <annotation encoding="application/x-tex">{\displaystyle E({\boldsymbol {\epsilon }})={\boldsymbol {0}}}</annotation> </semantics> </math></span><img src="https://wikimedia.org/api/rest_v1/media/math/render/svg/6276da282871b9e361aa0a794c61d2fc059b77f1" class="mwe-math-fallback-image-inline mw-invert skin-invert" aria-hidden="true" style="vertical-align: -0.838ex; width:9.143ex; height:2.843ex;" alt="{\displaystyle E({\boldsymbol {\epsilon }})={\boldsymbol {0}}}"></span> and variance <span class="mwe-math-element"><span class="mwe-math-mathml-inline mwe-math-mathml-a11y" style="display: none;"><math xmlns="http://www.w3.org/1998/Math/MathML" alttext="{\displaystyle \operatorname {var} ({\boldsymbol {\epsilon }})=R}"> <semantics> <mrow class="MJX-TeXAtom-ORD"> <mstyle displaystyle="true" scriptlevel="0"> <mi>var</mi> <mo>⁡<!-- --></mo> <mo stretchy="false">(</mo> <mrow class="MJX-TeXAtom-ORD"> <mi mathvariant="bold-italic">ϵ<!-- ϵ --></mi> </mrow> <mo stretchy="false">)</mo> <mo>=</mo> <mi>R</mi> </mstyle> </mrow> <annotation encoding="application/x-tex">{\displaystyle \operatorname {var} ({\boldsymbol {\epsilon }})=R}</annotation> </semantics> </math></span><img src="https://wikimedia.org/api/rest_v1/media/math/render/svg/3172e3fd6b8283eae893b11d6b945d8d37f089a9" class="mwe-math-fallback-image-inline mw-invert skin-invert" aria-hidden="true" style="vertical-align: -0.838ex; width:11.096ex; height:2.843ex;" alt="{\displaystyle \operatorname {var} ({\boldsymbol {\epsilon }})=R}"></span>;</li> <li><span class="mwe-math-element"><span class="mwe-math-mathml-inline mwe-math-mathml-a11y" style="display: none;"><math xmlns="http://www.w3.org/1998/Math/MathML" alttext="{\displaystyle X}"> <semantics> <mrow class="MJX-TeXAtom-ORD"> <mstyle displaystyle="true" scriptlevel="0"> <mi>X</mi> </mstyle> </mrow> <annotation encoding="application/x-tex">{\displaystyle X}</annotation> </semantics> </math></span><img src="https://wikimedia.org/api/rest_v1/media/math/render/svg/68baa052181f707c662844a465bfeeb135e82bab" class="mwe-math-fallback-image-inline mw-invert skin-invert" aria-hidden="true" style="vertical-align: -0.338ex; width:1.98ex; height:2.176ex;" alt="{\displaystyle X}"></span> is the known <a href="/wiki/Design_matrix" title="Design matrix">design matrix</a> for the fixed effects relating the observations <span class="mwe-math-element"><span class="mwe-math-mathml-inline mwe-math-mathml-a11y" style="display: none;"><math xmlns="http://www.w3.org/1998/Math/MathML" alttext="{\displaystyle {\boldsymbol {y}}}"> <semantics> <mrow class="MJX-TeXAtom-ORD"> <mstyle displaystyle="true" scriptlevel="0"> <mrow class="MJX-TeXAtom-ORD"> <mi mathvariant="bold-italic">y</mi> </mrow> </mstyle> </mrow> <annotation encoding="application/x-tex">{\displaystyle {\boldsymbol {y}}}</annotation> </semantics> </math></span><img src="https://wikimedia.org/api/rest_v1/media/math/render/svg/ca3ae71d44145d721c4b15d442e03005e5ea9850" class="mwe-math-fallback-image-inline mw-invert skin-invert" aria-hidden="true" style="vertical-align: -0.671ex; width:1.371ex; height:2.009ex;" alt="{\displaystyle {\boldsymbol {y}}}"></span> to <span class="mwe-math-element"><span class="mwe-math-mathml-inline mwe-math-mathml-a11y" style="display: none;"><math xmlns="http://www.w3.org/1998/Math/MathML" alttext="{\displaystyle {\boldsymbol {\beta }}}"> <semantics> <mrow class="MJX-TeXAtom-ORD"> <mstyle displaystyle="true" scriptlevel="0"> <mrow class="MJX-TeXAtom-ORD"> <mi mathvariant="bold-italic">β<!-- β --></mi> </mrow> </mstyle> </mrow> <annotation encoding="application/x-tex">{\displaystyle {\boldsymbol {\beta }}}</annotation> </semantics> </math></span><img src="https://wikimedia.org/api/rest_v1/media/math/render/svg/702cafc420cc00c54896f6d125112820956aaf6b" class="mwe-math-fallback-image-inline mw-invert skin-invert" aria-hidden="true" style="vertical-align: -0.671ex; width:1.534ex; height:2.509ex;" alt="{\displaystyle {\boldsymbol {\beta }}}"></span>, respectively</li> <li><span class="mwe-math-element"><span class="mwe-math-mathml-inline mwe-math-mathml-a11y" style="display: none;"><math xmlns="http://www.w3.org/1998/Math/MathML" alttext="{\displaystyle Z}"> <semantics> <mrow class="MJX-TeXAtom-ORD"> <mstyle displaystyle="true" scriptlevel="0"> <mi>Z</mi> </mstyle> </mrow> <annotation encoding="application/x-tex">{\displaystyle Z}</annotation> </semantics> </math></span><img src="https://wikimedia.org/api/rest_v1/media/math/render/svg/1cc6b75e09a8aa3f04d8584b11db534f88fb56bd" class="mwe-math-fallback-image-inline mw-invert skin-invert" aria-hidden="true" style="vertical-align: -0.338ex; width:1.68ex; height:2.176ex;" alt="{\displaystyle Z}"></span> is the known <a href="/wiki/Design_matrix" title="Design matrix">design matrix</a> for the random effects relating the observations <span class="mwe-math-element"><span class="mwe-math-mathml-inline mwe-math-mathml-a11y" style="display: none;"><math xmlns="http://www.w3.org/1998/Math/MathML" alttext="{\displaystyle {\boldsymbol {y}}}"> <semantics> <mrow class="MJX-TeXAtom-ORD"> <mstyle displaystyle="true" scriptlevel="0"> <mrow class="MJX-TeXAtom-ORD"> <mi mathvariant="bold-italic">y</mi> </mrow> </mstyle> </mrow> <annotation encoding="application/x-tex">{\displaystyle {\boldsymbol {y}}}</annotation> </semantics> </math></span><img src="https://wikimedia.org/api/rest_v1/media/math/render/svg/ca3ae71d44145d721c4b15d442e03005e5ea9850" class="mwe-math-fallback-image-inline mw-invert skin-invert" aria-hidden="true" style="vertical-align: -0.671ex; width:1.371ex; height:2.009ex;" alt="{\displaystyle {\boldsymbol {y}}}"></span> to <span class="mwe-math-element"><span class="mwe-math-mathml-inline mwe-math-mathml-a11y" style="display: none;"><math xmlns="http://www.w3.org/1998/Math/MathML" alttext="{\displaystyle {\boldsymbol {u}}}"> <semantics> <mrow class="MJX-TeXAtom-ORD"> <mstyle displaystyle="true" scriptlevel="0"> <mrow class="MJX-TeXAtom-ORD"> <mi mathvariant="bold-italic">u</mi> </mrow> </mstyle> </mrow> <annotation encoding="application/x-tex">{\displaystyle {\boldsymbol {u}}}</annotation> </semantics> </math></span><img src="https://wikimedia.org/api/rest_v1/media/math/render/svg/3d60e374e33b2c1d75888c0e8759f9e770e718f7" class="mwe-math-fallback-image-inline mw-invert skin-invert" aria-hidden="true" style="vertical-align: -0.338ex; width:1.583ex; height:1.676ex;" alt="{\displaystyle {\boldsymbol {u}}}"></span>, respectively.</li></ul> <p>For example, if each observation can belong to any zero or more of <span class="texhtml mvar" style="font-style:italic;">k</span> categories then <span class="texhtml mvar" style="font-style:italic;">Z</span>, which has one row per observation, can be chosen to have <span class="texhtml mvar" style="font-style:italic;">k</span> columns, where a value of <span class="texhtml">1</span> for a matrix element of <span class="texhtml mvar" style="font-style:italic;">Z</span> indicates that an observation is known to belong to a category and a value of <span class="texhtml">0</span> indicates that an observation is known to not belong to a category. The inferred value of <span class="texhtml mvar" style="font-style:italic;">u</span> for a category is then a category-specific <a href="/wiki/Y-intercept" title="Y-intercept">intercept</a>. If <span class="texhtml mvar" style="font-style:italic;">Z</span> has additional columns, where the non-zero values are instead the value of an independent variable for an observation, then the corresponding inferred value of <span class="texhtml mvar" style="font-style:italic;">u</span> is a category-specific <a href="/wiki/Slope" title="Slope">slope</a> for that independent variable. The prior distribution for the category intercepts and slopes is described by the covariance matrix <span class="texhtml mvar" style="font-style:italic;">G</span>. </p> <div class="mw-heading mw-heading2"><h2 id="Estimation">Estimation</h2><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=Mixed_model&action=edit&section=6" title="Edit section: Estimation"><span>edit</span></a><span class="mw-editsection-bracket">]</span></span></div> <p>The joint density of <span class="mwe-math-element"><span class="mwe-math-mathml-inline mwe-math-mathml-a11y" style="display: none;"><math xmlns="http://www.w3.org/1998/Math/MathML" alttext="{\displaystyle {\boldsymbol {y}}}"> <semantics> <mrow class="MJX-TeXAtom-ORD"> <mstyle displaystyle="true" scriptlevel="0"> <mrow class="MJX-TeXAtom-ORD"> <mi mathvariant="bold-italic">y</mi> </mrow> </mstyle> </mrow> <annotation encoding="application/x-tex">{\displaystyle {\boldsymbol {y}}}</annotation> </semantics> </math></span><img src="https://wikimedia.org/api/rest_v1/media/math/render/svg/ca3ae71d44145d721c4b15d442e03005e5ea9850" class="mwe-math-fallback-image-inline mw-invert skin-invert" aria-hidden="true" style="vertical-align: -0.671ex; width:1.371ex; height:2.009ex;" alt="{\displaystyle {\boldsymbol {y}}}"></span> and <span class="mwe-math-element"><span class="mwe-math-mathml-inline mwe-math-mathml-a11y" style="display: none;"><math xmlns="http://www.w3.org/1998/Math/MathML" alttext="{\displaystyle {\boldsymbol {u}}}"> <semantics> <mrow class="MJX-TeXAtom-ORD"> <mstyle displaystyle="true" scriptlevel="0"> <mrow class="MJX-TeXAtom-ORD"> <mi mathvariant="bold-italic">u</mi> </mrow> </mstyle> </mrow> <annotation encoding="application/x-tex">{\displaystyle {\boldsymbol {u}}}</annotation> </semantics> </math></span><img src="https://wikimedia.org/api/rest_v1/media/math/render/svg/3d60e374e33b2c1d75888c0e8759f9e770e718f7" class="mwe-math-fallback-image-inline mw-invert skin-invert" aria-hidden="true" style="vertical-align: -0.338ex; width:1.583ex; height:1.676ex;" alt="{\displaystyle {\boldsymbol {u}}}"></span> can be written as: <span class="mwe-math-element"><span class="mwe-math-mathml-inline mwe-math-mathml-a11y" style="display: none;"><math xmlns="http://www.w3.org/1998/Math/MathML" alttext="{\displaystyle f({\boldsymbol {y}},{\boldsymbol {u}})=f({\boldsymbol {y}}|{\boldsymbol {u}})\,f({\boldsymbol {u}})}"> <semantics> <mrow class="MJX-TeXAtom-ORD"> <mstyle displaystyle="true" scriptlevel="0"> <mi>f</mi> <mo stretchy="false">(</mo> <mrow class="MJX-TeXAtom-ORD"> <mi mathvariant="bold-italic">y</mi> </mrow> <mo>,</mo> <mrow class="MJX-TeXAtom-ORD"> <mi mathvariant="bold-italic">u</mi> </mrow> <mo stretchy="false">)</mo> <mo>=</mo> <mi>f</mi> <mo stretchy="false">(</mo> <mrow class="MJX-TeXAtom-ORD"> <mi mathvariant="bold-italic">y</mi> </mrow> <mrow class="MJX-TeXAtom-ORD"> <mo stretchy="false">|</mo> </mrow> <mrow class="MJX-TeXAtom-ORD"> <mi mathvariant="bold-italic">u</mi> </mrow> <mo stretchy="false">)</mo> <mspace width="thinmathspace" /> <mi>f</mi> <mo stretchy="false">(</mo> <mrow class="MJX-TeXAtom-ORD"> <mi mathvariant="bold-italic">u</mi> </mrow> <mo stretchy="false">)</mo> </mstyle> </mrow> <annotation encoding="application/x-tex">{\displaystyle f({\boldsymbol {y}},{\boldsymbol {u}})=f({\boldsymbol {y}}|{\boldsymbol {u}})\,f({\boldsymbol {u}})}</annotation> </semantics> </math></span><img src="https://wikimedia.org/api/rest_v1/media/math/render/svg/176b5a405d4fe1aeda9d9c6b740bec143dd152a3" class="mwe-math-fallback-image-inline mw-invert skin-invert" aria-hidden="true" style="vertical-align: -0.838ex; width:21.921ex; height:2.843ex;" alt="{\displaystyle f({\boldsymbol {y}},{\boldsymbol {u}})=f({\boldsymbol {y}}|{\boldsymbol {u}})\,f({\boldsymbol {u}})}"></span>. Assuming normality, <span class="mwe-math-element"><span class="mwe-math-mathml-inline mwe-math-mathml-a11y" style="display: none;"><math xmlns="http://www.w3.org/1998/Math/MathML" alttext="{\displaystyle {\boldsymbol {u}}\sim {\mathcal {N}}({\boldsymbol {0}},G)}"> <semantics> <mrow class="MJX-TeXAtom-ORD"> <mstyle displaystyle="true" scriptlevel="0"> <mrow class="MJX-TeXAtom-ORD"> <mi mathvariant="bold-italic">u</mi> </mrow> <mo>∼<!-- ∼ --></mo> <mrow class="MJX-TeXAtom-ORD"> <mrow class="MJX-TeXAtom-ORD"> <mi class="MJX-tex-caligraphic" mathvariant="script">N</mi> </mrow> </mrow> <mo stretchy="false">(</mo> <mrow class="MJX-TeXAtom-ORD"> <mn mathvariant="bold">0</mn> </mrow> <mo>,</mo> <mi>G</mi> <mo stretchy="false">)</mo> </mstyle> </mrow> <annotation encoding="application/x-tex">{\displaystyle {\boldsymbol {u}}\sim {\mathcal {N}}({\boldsymbol {0}},G)}</annotation> </semantics> </math></span><img src="https://wikimedia.org/api/rest_v1/media/math/render/svg/15295eb4e351bc0572f8094b532af1e3827034f5" class="mwe-math-fallback-image-inline mw-invert skin-invert" aria-hidden="true" style="vertical-align: -0.838ex; width:12.963ex; height:3.009ex;" alt="{\displaystyle {\boldsymbol {u}}\sim {\mathcal {N}}({\boldsymbol {0}},G)}"></span>, <span class="mwe-math-element"><span class="mwe-math-mathml-inline mwe-math-mathml-a11y" style="display: none;"><math xmlns="http://www.w3.org/1998/Math/MathML" alttext="{\displaystyle {\boldsymbol {\epsilon }}\sim {\mathcal {N}}({\boldsymbol {0}},R)}"> <semantics> <mrow class="MJX-TeXAtom-ORD"> <mstyle displaystyle="true" scriptlevel="0"> <mrow class="MJX-TeXAtom-ORD"> <mi mathvariant="bold-italic">ϵ<!-- ϵ --></mi> </mrow> <mo>∼<!-- ∼ --></mo> <mrow class="MJX-TeXAtom-ORD"> <mrow class="MJX-TeXAtom-ORD"> <mi class="MJX-tex-caligraphic" mathvariant="script">N</mi> </mrow> </mrow> <mo stretchy="false">(</mo> <mrow class="MJX-TeXAtom-ORD"> <mn mathvariant="bold">0</mn> </mrow> <mo>,</mo> <mi>R</mi> <mo stretchy="false">)</mo> </mstyle> </mrow> <annotation encoding="application/x-tex">{\displaystyle {\boldsymbol {\epsilon }}\sim {\mathcal {N}}({\boldsymbol {0}},R)}</annotation> </semantics> </math></span><img src="https://wikimedia.org/api/rest_v1/media/math/render/svg/aaf2c338eff29cee9d70136af2032106812d304b" class="mwe-math-fallback-image-inline mw-invert skin-invert" aria-hidden="true" style="vertical-align: -0.838ex; width:12.44ex; height:3.009ex;" alt="{\displaystyle {\boldsymbol {\epsilon }}\sim {\mathcal {N}}({\boldsymbol {0}},R)}"></span> and <span class="mwe-math-element"><span class="mwe-math-mathml-inline mwe-math-mathml-a11y" style="display: none;"><math xmlns="http://www.w3.org/1998/Math/MathML" alttext="{\displaystyle \mathrm {Cov} ({\boldsymbol {u}},{\boldsymbol {\epsilon }})={\boldsymbol {0}}}"> <semantics> <mrow class="MJX-TeXAtom-ORD"> <mstyle displaystyle="true" scriptlevel="0"> <mrow class="MJX-TeXAtom-ORD"> <mi mathvariant="normal">C</mi> <mi mathvariant="normal">o</mi> <mi mathvariant="normal">v</mi> </mrow> <mo stretchy="false">(</mo> <mrow class="MJX-TeXAtom-ORD"> <mi mathvariant="bold-italic">u</mi> </mrow> <mo>,</mo> <mrow class="MJX-TeXAtom-ORD"> <mi mathvariant="bold-italic">ϵ<!-- ϵ --></mi> </mrow> <mo stretchy="false">)</mo> <mo>=</mo> <mrow class="MJX-TeXAtom-ORD"> <mn mathvariant="bold">0</mn> </mrow> </mstyle> </mrow> <annotation encoding="application/x-tex">{\displaystyle \mathrm {Cov} ({\boldsymbol {u}},{\boldsymbol {\epsilon }})={\boldsymbol {0}}}</annotation> </semantics> </math></span><img src="https://wikimedia.org/api/rest_v1/media/math/render/svg/b2387a151a2bb4c4f2a9e5cbf2f11b1d661388cb" class="mwe-math-fallback-image-inline mw-invert skin-invert" aria-hidden="true" style="vertical-align: -0.838ex; width:14.052ex; height:2.843ex;" alt="{\displaystyle \mathrm {Cov} ({\boldsymbol {u}},{\boldsymbol {\epsilon }})={\boldsymbol {0}}}"></span>, and maximizing the joint density over <span class="mwe-math-element"><span class="mwe-math-mathml-inline mwe-math-mathml-a11y" style="display: none;"><math xmlns="http://www.w3.org/1998/Math/MathML" alttext="{\displaystyle {\boldsymbol {\beta }}}"> <semantics> <mrow class="MJX-TeXAtom-ORD"> <mstyle displaystyle="true" scriptlevel="0"> <mrow class="MJX-TeXAtom-ORD"> <mi mathvariant="bold-italic">β<!-- β --></mi> </mrow> </mstyle> </mrow> <annotation encoding="application/x-tex">{\displaystyle {\boldsymbol {\beta }}}</annotation> </semantics> </math></span><img src="https://wikimedia.org/api/rest_v1/media/math/render/svg/702cafc420cc00c54896f6d125112820956aaf6b" class="mwe-math-fallback-image-inline mw-invert skin-invert" aria-hidden="true" style="vertical-align: -0.671ex; width:1.534ex; height:2.509ex;" alt="{\displaystyle {\boldsymbol {\beta }}}"></span> and <span class="mwe-math-element"><span class="mwe-math-mathml-inline mwe-math-mathml-a11y" style="display: none;"><math xmlns="http://www.w3.org/1998/Math/MathML" alttext="{\displaystyle {\boldsymbol {u}}}"> <semantics> <mrow class="MJX-TeXAtom-ORD"> <mstyle displaystyle="true" scriptlevel="0"> <mrow class="MJX-TeXAtom-ORD"> <mi mathvariant="bold-italic">u</mi> </mrow> </mstyle> </mrow> <annotation encoding="application/x-tex">{\displaystyle {\boldsymbol {u}}}</annotation> </semantics> </math></span><img src="https://wikimedia.org/api/rest_v1/media/math/render/svg/3d60e374e33b2c1d75888c0e8759f9e770e718f7" class="mwe-math-fallback-image-inline mw-invert skin-invert" aria-hidden="true" style="vertical-align: -0.338ex; width:1.583ex; height:1.676ex;" alt="{\displaystyle {\boldsymbol {u}}}"></span>, gives Henderson's "mixed model equations" (MME) for linear mixed models:<sup id="cite_ref-GKR1991_13-1" class="reference"><a href="#cite_note-GKR1991-13"><span class="cite-bracket">[</span>13<span class="cite-bracket">]</span></a></sup><sup id="cite_ref-LDVV1989_15-1" class="reference"><a href="#cite_note-LDVV1989-15"><span class="cite-bracket">[</span>15<span class="cite-bracket">]</span></a></sup><sup id="cite_ref-20" class="reference"><a href="#cite_note-20"><span class="cite-bracket">[</span>20<span class="cite-bracket">]</span></a></sup> </p> <dl><dd><span class="mwe-math-element"><span class="mwe-math-mathml-inline mwe-math-mathml-a11y" style="display: none;"><math xmlns="http://www.w3.org/1998/Math/MathML" alttext="{\displaystyle {\begin{pmatrix}X'R^{-1}X&X'R^{-1}Z\\Z'R^{-1}X&Z'R^{-1}Z+G^{-1}\end{pmatrix}}{\begin{pmatrix}{\hat {\boldsymbol {\beta }}}\\{\hat {\boldsymbol {u}}}\end{pmatrix}}={\begin{pmatrix}X'R^{-1}{\boldsymbol {y}}\\Z'R^{-1}{\boldsymbol {y}}\end{pmatrix}}}"> <semantics> <mrow class="MJX-TeXAtom-ORD"> <mstyle displaystyle="true" scriptlevel="0"> <mrow class="MJX-TeXAtom-ORD"> <mrow> <mo>(</mo> <mtable rowspacing="4pt" columnspacing="1em"> <mtr> <mtd> <msup> <mi>X</mi> <mo>′</mo> </msup> <msup> <mi>R</mi> <mrow class="MJX-TeXAtom-ORD"> <mo>−<!-- − --></mo> <mn>1</mn> </mrow> </msup> <mi>X</mi> </mtd> <mtd> <msup> <mi>X</mi> <mo>′</mo> </msup> <msup> <mi>R</mi> <mrow class="MJX-TeXAtom-ORD"> <mo>−<!-- − --></mo> <mn>1</mn> </mrow> </msup> <mi>Z</mi> </mtd> </mtr> <mtr> <mtd> <msup> <mi>Z</mi> <mo>′</mo> </msup> <msup> <mi>R</mi> <mrow class="MJX-TeXAtom-ORD"> <mo>−<!-- − --></mo> <mn>1</mn> </mrow> </msup> <mi>X</mi> </mtd> <mtd> <msup> <mi>Z</mi> <mo>′</mo> </msup> <msup> <mi>R</mi> <mrow class="MJX-TeXAtom-ORD"> <mo>−<!-- − --></mo> <mn>1</mn> </mrow> </msup> <mi>Z</mi> <mo>+</mo> <msup> <mi>G</mi> <mrow class="MJX-TeXAtom-ORD"> <mo>−<!-- − --></mo> <mn>1</mn> </mrow> </msup> </mtd> </mtr> </mtable> <mo>)</mo> </mrow> </mrow> <mrow class="MJX-TeXAtom-ORD"> <mrow> <mo>(</mo> <mtable rowspacing="4pt" columnspacing="1em"> <mtr> <mtd> <mrow class="MJX-TeXAtom-ORD"> <mrow class="MJX-TeXAtom-ORD"> <mover> <mi mathvariant="bold-italic">β<!-- β --></mi> <mo stretchy="false">^<!-- ^ --></mo> </mover> </mrow> </mrow> </mtd> </mtr> <mtr> <mtd> <mrow class="MJX-TeXAtom-ORD"> <mrow class="MJX-TeXAtom-ORD"> <mover> <mi mathvariant="bold-italic">u</mi> <mo stretchy="false">^<!-- ^ --></mo> </mover> </mrow> </mrow> </mtd> </mtr> </mtable> <mo>)</mo> </mrow> </mrow> <mo>=</mo> <mrow class="MJX-TeXAtom-ORD"> <mrow> <mo>(</mo> <mtable rowspacing="4pt" columnspacing="1em"> <mtr> <mtd> <msup> <mi>X</mi> <mo>′</mo> </msup> <msup> <mi>R</mi> <mrow class="MJX-TeXAtom-ORD"> <mo>−<!-- − --></mo> <mn>1</mn> </mrow> </msup> <mrow class="MJX-TeXAtom-ORD"> <mi mathvariant="bold-italic">y</mi> </mrow> </mtd> </mtr> <mtr> <mtd> <msup> <mi>Z</mi> <mo>′</mo> </msup> <msup> <mi>R</mi> <mrow class="MJX-TeXAtom-ORD"> <mo>−<!-- − --></mo> <mn>1</mn> </mrow> </msup> <mrow class="MJX-TeXAtom-ORD"> <mi mathvariant="bold-italic">y</mi> </mrow> </mtd> </mtr> </mtable> <mo>)</mo> </mrow> </mrow> </mstyle> </mrow> <annotation encoding="application/x-tex">{\displaystyle {\begin{pmatrix}X'R^{-1}X&X'R^{-1}Z\\Z'R^{-1}X&Z'R^{-1}Z+G^{-1}\end{pmatrix}}{\begin{pmatrix}{\hat {\boldsymbol {\beta }}}\\{\hat {\boldsymbol {u}}}\end{pmatrix}}={\begin{pmatrix}X'R^{-1}{\boldsymbol {y}}\\Z'R^{-1}{\boldsymbol {y}}\end{pmatrix}}}</annotation> </semantics> </math></span><img src="https://wikimedia.org/api/rest_v1/media/math/render/svg/95a98287183c43db7b3ee3f0b9ab930fd957ca84" class="mwe-math-fallback-image-inline mw-invert skin-invert" aria-hidden="true" style="vertical-align: -2.671ex; width:51.6ex; height:6.509ex;" alt="{\displaystyle {\begin{pmatrix}X'R^{-1}X&X'R^{-1}Z\\Z'R^{-1}X&Z'R^{-1}Z+G^{-1}\end{pmatrix}}{\begin{pmatrix}{\hat {\boldsymbol {\beta }}}\\{\hat {\boldsymbol {u}}}\end{pmatrix}}={\begin{pmatrix}X'R^{-1}{\boldsymbol {y}}\\Z'R^{-1}{\boldsymbol {y}}\end{pmatrix}}}"></span></dd></dl> <p>where for example <span class="texhtml mvar" style="font-style:italic;">X′</span> is the <a href="/wiki/Matrix_transpose" class="mw-redirect" title="Matrix transpose">matrix transpose</a> of <span class="texhtml mvar" style="font-style:italic;">X</span> and <span class="texhtml"><i>R</i><sup>−1</sup></span> is the <a href="/wiki/Matrix_inverse" class="mw-redirect" title="Matrix inverse">matrix inverse</a> of <span class="texhtml mvar" style="font-style:italic;">R</span>. </p><p>The solutions to the MME, <span class="mwe-math-element"><span class="mwe-math-mathml-inline mwe-math-mathml-a11y" style="display: none;"><math xmlns="http://www.w3.org/1998/Math/MathML" alttext="{\displaystyle \textstyle {\hat {\boldsymbol {\beta }}}}"> <semantics> <mrow class="MJX-TeXAtom-ORD"> <mstyle displaystyle="true" scriptlevel="0"> <mstyle displaystyle="false" scriptlevel="0"> <mrow class="MJX-TeXAtom-ORD"> <mrow class="MJX-TeXAtom-ORD"> <mover> <mi mathvariant="bold-italic">β<!-- β --></mi> <mo stretchy="false">^<!-- ^ --></mo> </mover> </mrow> </mrow> </mstyle> </mstyle> </mrow> <annotation encoding="application/x-tex">{\displaystyle \textstyle {\hat {\boldsymbol {\beta }}}}</annotation> </semantics> </math></span><img src="https://wikimedia.org/api/rest_v1/media/math/render/svg/b85d0e04df1e0176fc55514ac6763ebf8e1b20a6" class="mwe-math-fallback-image-inline mw-invert skin-invert" aria-hidden="true" style="vertical-align: -0.671ex; width:1.571ex; height:3.176ex;" alt="{\displaystyle \textstyle {\hat {\boldsymbol {\beta }}}}"></span> and <span class="mwe-math-element"><span class="mwe-math-mathml-inline mwe-math-mathml-a11y" style="display: none;"><math xmlns="http://www.w3.org/1998/Math/MathML" alttext="{\displaystyle \textstyle {\hat {\boldsymbol {u}}}}"> <semantics> <mrow class="MJX-TeXAtom-ORD"> <mstyle displaystyle="true" scriptlevel="0"> <mstyle displaystyle="false" scriptlevel="0"> <mrow class="MJX-TeXAtom-ORD"> <mrow class="MJX-TeXAtom-ORD"> <mover> <mi mathvariant="bold-italic">u</mi> <mo stretchy="false">^<!-- ^ --></mo> </mover> </mrow> </mrow> </mstyle> </mstyle> </mrow> <annotation encoding="application/x-tex">{\displaystyle \textstyle {\hat {\boldsymbol {u}}}}</annotation> </semantics> </math></span><img src="https://wikimedia.org/api/rest_v1/media/math/render/svg/8a68c211cb74c368dbc3795aab48a47a6dd7cb7b" class="mwe-math-fallback-image-inline mw-invert skin-invert" aria-hidden="true" style="vertical-align: -0.338ex; width:1.583ex; height:2.343ex;" alt="{\displaystyle \textstyle {\hat {\boldsymbol {u}}}}"></span> are best linear unbiased estimates and predictors for <span class="mwe-math-element"><span class="mwe-math-mathml-inline mwe-math-mathml-a11y" style="display: none;"><math xmlns="http://www.w3.org/1998/Math/MathML" alttext="{\displaystyle {\boldsymbol {\beta }}}"> <semantics> <mrow class="MJX-TeXAtom-ORD"> <mstyle displaystyle="true" scriptlevel="0"> <mrow class="MJX-TeXAtom-ORD"> <mi mathvariant="bold-italic">β<!-- β --></mi> </mrow> </mstyle> </mrow> <annotation encoding="application/x-tex">{\displaystyle {\boldsymbol {\beta }}}</annotation> </semantics> </math></span><img src="https://wikimedia.org/api/rest_v1/media/math/render/svg/702cafc420cc00c54896f6d125112820956aaf6b" class="mwe-math-fallback-image-inline mw-invert skin-invert" aria-hidden="true" style="vertical-align: -0.671ex; width:1.534ex; height:2.509ex;" alt="{\displaystyle {\boldsymbol {\beta }}}"></span> and <span class="mwe-math-element"><span class="mwe-math-mathml-inline mwe-math-mathml-a11y" style="display: none;"><math xmlns="http://www.w3.org/1998/Math/MathML" alttext="{\displaystyle {\boldsymbol {u}}}"> <semantics> <mrow class="MJX-TeXAtom-ORD"> <mstyle displaystyle="true" scriptlevel="0"> <mrow class="MJX-TeXAtom-ORD"> <mi mathvariant="bold-italic">u</mi> </mrow> </mstyle> </mrow> <annotation encoding="application/x-tex">{\displaystyle {\boldsymbol {u}}}</annotation> </semantics> </math></span><img src="https://wikimedia.org/api/rest_v1/media/math/render/svg/3d60e374e33b2c1d75888c0e8759f9e770e718f7" class="mwe-math-fallback-image-inline mw-invert skin-invert" aria-hidden="true" style="vertical-align: -0.338ex; width:1.583ex; height:1.676ex;" alt="{\displaystyle {\boldsymbol {u}}}"></span>, respectively. This is a consequence of the <a href="/wiki/Gauss%E2%80%93Markov_theorem" title="Gauss–Markov theorem">Gauss–Markov theorem</a> when the <a href="/wiki/Conditional_variance" title="Conditional variance">conditional variance</a> of the outcome is not scalable to the identity matrix. When the conditional variance is known, then the inverse variance weighted least squares estimate is best linear unbiased estimates. However, the conditional variance is rarely, if ever, known. So it is desirable to jointly estimate the variance and weighted parameter estimates when solving MMEs. </p> <div class="mw-heading mw-heading3"><h3 id="Choice_of_random_effects_structure">Choice of random effects structure</h3><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=Mixed_model&action=edit&section=7" title="Edit section: Choice of random effects structure"><span>edit</span></a><span class="mw-editsection-bracket">]</span></span></div> <p>One choice that analysts face with mixed models is which random effects (i.e., grouping variables, random intercepts, and random slopes) to include. One prominent recommendation in the context of confirmatory hypothesis testing<sup id="cite_ref-21" class="reference"><a href="#cite_note-21"><span class="cite-bracket">[</span>21<span class="cite-bracket">]</span></a></sup> is to adopt a "maximal" random effects structure, including all possible random effects justified by the experimental design, as a means to control Type I error rates. </p> <div class="mw-heading mw-heading3"><h3 id="Software">Software</h3><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=Mixed_model&action=edit&section=8" title="Edit section: Software"><span>edit</span></a><span class="mw-editsection-bracket">]</span></span></div> <p>One method used to fit such mixed models is that of the <a href="/wiki/Expectation%E2%80%93maximization_algorithm" title="Expectation–maximization algorithm">expectation–maximization algorithm</a> (EM) where the variance components are treated as unobserved <a href="/wiki/Nuisance_parameter" title="Nuisance parameter">nuisance parameters</a> in the joint likelihood.<sup id="cite_ref-22" class="reference"><a href="#cite_note-22"><span class="cite-bracket">[</span>22<span class="cite-bracket">]</span></a></sup> Currently, this is the method implemented in statistical software such as <a href="/wiki/Python_(programming_language)" title="Python (programming language)">Python</a> (statsmodels package) and <a href="/wiki/SAS_(software)" title="SAS (software)">SAS</a> (proc mixed), and as initial step only in <a href="/wiki/R_(programming_language)" title="R (programming language)">R</a>'s nlme package lme(). The solution to the mixed model equations is a <a href="/wiki/Maximum_likelihood_estimate" class="mw-redirect" title="Maximum likelihood estimate">maximum likelihood estimate</a> when the distribution of the errors is normal.<sup id="cite_ref-23" class="reference"><a href="#cite_note-23"><span class="cite-bracket">[</span>23<span class="cite-bracket">]</span></a></sup><sup id="cite_ref-24" class="reference"><a href="#cite_note-24"><span class="cite-bracket">[</span>24<span class="cite-bracket">]</span></a></sup> </p> <figure typeof="mw:File/Thumb"><a href="/wiki/File:Mixedandfixedeffects.jpg" class="mw-file-description"><img src="//upload.wikimedia.org/wikipedia/commons/thumb/1/12/Mixedandfixedeffects.jpg/346px-Mixedandfixedeffects.jpg" decoding="async" width="346" height="237" class="mw-file-element" srcset="//upload.wikimedia.org/wikipedia/commons/thumb/1/12/Mixedandfixedeffects.jpg/519px-Mixedandfixedeffects.jpg 1.5x, //upload.wikimedia.org/wikipedia/commons/thumb/1/12/Mixedandfixedeffects.jpg/692px-Mixedandfixedeffects.jpg 2x" data-file-width="1915" data-file-height="1310" /></a><figcaption>Fixed, mixed, and random effects influence linear regression models.</figcaption></figure> <p>There are several other methods to fit mixed models, including using a mixed effect model (MEM) initially, and then Newton-Raphson (used by <a href="/wiki/R_(programming_language)" title="R (programming language)">R</a> package nlme<sup id="cite_ref-pinheiro_bates2006_25-0" class="reference"><a href="#cite_note-pinheiro_bates2006-25"><span class="cite-bracket">[</span>25<span class="cite-bracket">]</span></a></sup>'s lme()), penalized least squares to get a profiled log likelihood only depending on the (low-dimensional) variance-covariance parameters of <span class="mwe-math-element"><span class="mwe-math-mathml-inline mwe-math-mathml-a11y" style="display: none;"><math xmlns="http://www.w3.org/1998/Math/MathML" alttext="{\displaystyle {\boldsymbol {u}}}"> <semantics> <mrow class="MJX-TeXAtom-ORD"> <mstyle displaystyle="true" scriptlevel="0"> <mrow class="MJX-TeXAtom-ORD"> <mi mathvariant="bold-italic">u</mi> </mrow> </mstyle> </mrow> <annotation encoding="application/x-tex">{\displaystyle {\boldsymbol {u}}}</annotation> </semantics> </math></span><img src="https://wikimedia.org/api/rest_v1/media/math/render/svg/3d60e374e33b2c1d75888c0e8759f9e770e718f7" class="mwe-math-fallback-image-inline mw-invert skin-invert" aria-hidden="true" style="vertical-align: -0.338ex; width:1.583ex; height:1.676ex;" alt="{\displaystyle {\boldsymbol {u}}}"></span>, i.e., its cov matrix <span class="mwe-math-element"><span class="mwe-math-mathml-inline mwe-math-mathml-a11y" style="display: none;"><math xmlns="http://www.w3.org/1998/Math/MathML" alttext="{\displaystyle {\boldsymbol {G}}}"> <semantics> <mrow class="MJX-TeXAtom-ORD"> <mstyle displaystyle="true" scriptlevel="0"> <mrow class="MJX-TeXAtom-ORD"> <mi mathvariant="bold-italic">G</mi> </mrow> </mstyle> </mrow> <annotation encoding="application/x-tex">{\displaystyle {\boldsymbol {G}}}</annotation> </semantics> </math></span><img src="https://wikimedia.org/api/rest_v1/media/math/render/svg/5ef237517a5b4d24e57a1e81481f18ec67256b99" class="mwe-math-fallback-image-inline mw-invert skin-invert" aria-hidden="true" style="vertical-align: -0.338ex; width:2.061ex; height:2.176ex;" alt="{\displaystyle {\boldsymbol {G}}}"></span>, and then modern direct optimization for that reduced objective function (used by <a href="/wiki/R_(programming_language)" title="R (programming language)">R</a>'s lme4<sup id="cite_ref-26" class="reference"><a href="#cite_note-26"><span class="cite-bracket">[</span>26<span class="cite-bracket">]</span></a></sup> package lmer() and the <a href="/wiki/Julia_(programming_language)" title="Julia (programming language)">Julia</a> package MixedModels.jl) and direct optimization of the likelihood (used by e.g. <a href="/wiki/R_(programming_language)" title="R (programming language)">R</a>'s glmmTMB). Notably, while the canonical form proposed by Henderson is useful for theory, many popular software packages use a different formulation for numerical computation in order to take advantage of sparse matrix methods (e.g. lme4 and MixedModels.jl). </p><p>In the context of Bayesian methods, the brms package provides a user-friendly interface for fitting mixed models in R using Stan, allowing for the incorporation of prior distributions and the estimation of posterior distributions.<sup id="cite_ref-27" class="reference"><a href="#cite_note-27"><span class="cite-bracket">[</span>27<span class="cite-bracket">]</span></a></sup><sup id="cite_ref-28" class="reference"><a href="#cite_note-28"><span class="cite-bracket">[</span>28<span class="cite-bracket">]</span></a></sup> In python, Bambi provides a similarly streamlined approach for fitting mixed effects models using PyMC.<sup id="cite_ref-29" class="reference"><a href="#cite_note-29"><span class="cite-bracket">[</span>29<span class="cite-bracket">]</span></a></sup> </p> <div class="mw-heading mw-heading2"><h2 id="See_also">See also</h2><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=Mixed_model&action=edit&section=9" title="Edit section: See also"><span>edit</span></a><span class="mw-editsection-bracket">]</span></span></div> <ul><li><a href="/wiki/Nonlinear_mixed-effects_model" title="Nonlinear mixed-effects model">Nonlinear mixed-effects model</a></li> <li><a href="/wiki/Fixed_effects_model" title="Fixed effects model">Fixed effects model</a></li> <li><a href="/wiki/Generalized_linear_mixed_model" title="Generalized linear mixed model">Generalized linear mixed model</a></li> <li><a href="/wiki/Linear_regression" title="Linear regression">Linear regression</a></li> <li><a href="/wiki/Mixed-design_analysis_of_variance" title="Mixed-design analysis of variance">Mixed-design analysis of variance</a></li> <li><a href="/wiki/Multilevel_model" title="Multilevel model">Multilevel model</a></li> <li><a href="/wiki/Random_effects_model" title="Random effects model">Random effects model</a></li> <li><a href="/wiki/Repeated_measures_design" title="Repeated measures design">Repeated measures design</a></li> <li><a href="/wiki/Empirical_Bayes_method" title="Empirical Bayes method">Empirical Bayes method</a></li></ul> <div class="mw-heading mw-heading2"><h2 id="References">References</h2><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=Mixed_model&action=edit&section=10" title="Edit section: References"><span>edit</span></a><span class="mw-editsection-bracket">]</span></span></div> <style data-mw-deduplicate="TemplateStyles:r1239543626">.mw-parser-output .reflist{margin-bottom:0.5em;list-style-type:decimal}@media screen{.mw-parser-output .reflist{font-size:90%}}.mw-parser-output .reflist .references{font-size:100%;margin-bottom:0;list-style-type:inherit}.mw-parser-output .reflist-columns-2{column-width:30em}.mw-parser-output .reflist-columns-3{column-width:25em}.mw-parser-output .reflist-columns{margin-top:0.3em}.mw-parser-output .reflist-columns ol{margin-top:0}.mw-parser-output .reflist-columns li{page-break-inside:avoid;break-inside:avoid-column}.mw-parser-output .reflist-upper-alpha{list-style-type:upper-alpha}.mw-parser-output .reflist-upper-roman{list-style-type:upper-roman}.mw-parser-output .reflist-lower-alpha{list-style-type:lower-alpha}.mw-parser-output .reflist-lower-greek{list-style-type:lower-greek}.mw-parser-output .reflist-lower-roman{list-style-type:lower-roman}</style><div class="reflist"> <div class="mw-references-wrap mw-references-columns"><ol class="references"> <li id="cite_note-1"><span class="mw-cite-backlink"><b><a href="#cite_ref-1">^</a></b></span> <span class="reference-text"><style data-mw-deduplicate="TemplateStyles:r1238218222">.mw-parser-output cite.citation{font-style:inherit;word-wrap:break-word}.mw-parser-output .citation q{quotes:"\"""\"""'""'"}.mw-parser-output .citation:target{background-color:rgba(0,127,255,0.133)}.mw-parser-output .id-lock-free.id-lock-free a{background:url("//upload.wikimedia.org/wikipedia/commons/6/65/Lock-green.svg")right 0.1em center/9px no-repeat}.mw-parser-output .id-lock-limited.id-lock-limited a,.mw-parser-output .id-lock-registration.id-lock-registration a{background:url("//upload.wikimedia.org/wikipedia/commons/d/d6/Lock-gray-alt-2.svg")right 0.1em center/9px no-repeat}.mw-parser-output .id-lock-subscription.id-lock-subscription a{background:url("//upload.wikimedia.org/wikipedia/commons/a/aa/Lock-red-alt-2.svg")right 0.1em center/9px no-repeat}.mw-parser-output .cs1-ws-icon a{background:url("//upload.wikimedia.org/wikipedia/commons/4/4c/Wikisource-logo.svg")right 0.1em center/12px no-repeat}body:not(.skin-timeless):not(.skin-minerva) .mw-parser-output .id-lock-free a,body:not(.skin-timeless):not(.skin-minerva) .mw-parser-output .id-lock-limited a,body:not(.skin-timeless):not(.skin-minerva) .mw-parser-output .id-lock-registration a,body:not(.skin-timeless):not(.skin-minerva) .mw-parser-output .id-lock-subscription a,body:not(.skin-timeless):not(.skin-minerva) .mw-parser-output .cs1-ws-icon a{background-size:contain;padding:0 1em 0 0}.mw-parser-output .cs1-code{color:inherit;background:inherit;border:none;padding:inherit}.mw-parser-output .cs1-hidden-error{display:none;color:var(--color-error,#d33)}.mw-parser-output .cs1-visible-error{color:var(--color-error,#d33)}.mw-parser-output .cs1-maint{display:none;color:#085;margin-left:0.3em}.mw-parser-output .cs1-kern-left{padding-left:0.2em}.mw-parser-output .cs1-kern-right{padding-right:0.2em}.mw-parser-output .citation .mw-selflink{font-weight:inherit}@media screen{.mw-parser-output .cs1-format{font-size:95%}html.skin-theme-clientpref-night .mw-parser-output .cs1-maint{color:#18911f}}@media screen and (prefers-color-scheme:dark){html.skin-theme-clientpref-os .mw-parser-output .cs1-maint{color:#18911f}}</style><cite id="CITEREFBaltagi2008" class="citation book cs1">Baltagi, Badi H. (2008). <i>Econometric Analysis of Panel Data</i> (Fourth ed.). New York: Wiley. pp. <span class="nowrap">54–</span>55. <a href="/wiki/ISBN_(identifier)" class="mw-redirect" title="ISBN (identifier)">ISBN</a> <a href="/wiki/Special:BookSources/978-0-470-51886-1" title="Special:BookSources/978-0-470-51886-1"><bdi>978-0-470-51886-1</bdi></a>.</cite><span title="ctx_ver=Z39.88-2004&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Abook&rft.genre=book&rft.btitle=Econometric+Analysis+of+Panel+Data&rft.place=New+York&rft.pages=%3Cspan+class%3D%22nowrap%22%3E54-%3C%2Fspan%3E55&rft.edition=Fourth&rft.pub=Wiley&rft.date=2008&rft.isbn=978-0-470-51886-1&rft.aulast=Baltagi&rft.aufirst=Badi+H.&rfr_id=info%3Asid%2Fen.wikipedia.org%3AMixed+model" class="Z3988"></span></span> </li> <li id="cite_note-Gomes2022-2"><span class="mw-cite-backlink">^ <a href="#cite_ref-Gomes2022_2-0"><sup><i><b>a</b></i></sup></a> <a href="#cite_ref-Gomes2022_2-1"><sup><i><b>b</b></i></sup></a></span> <span class="reference-text"><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1238218222"><cite id="CITEREFGomes2022" class="citation journal cs1">Gomes, Dylan G.E. (20 January 2022). <a rel="nofollow" class="external text" href="https://www.ncbi.nlm.nih.gov/pmc/articles/PMC8784019">"Should I use fixed effects or random effects when I have fewer than five levels of a grouping factor in a mixed-effects model?"</a>. <i>PeerJ</i>. <b>10</b>: e12794. <a href="/wiki/Doi_(identifier)" class="mw-redirect" title="Doi (identifier)">doi</a>:<span class="id-lock-free" title="Freely accessible"><a rel="nofollow" class="external text" href="https://doi.org/10.7717%2Fpeerj.12794">10.7717/peerj.12794</a></span>. <a href="/wiki/PMC_(identifier)" class="mw-redirect" title="PMC (identifier)">PMC</a> <span class="id-lock-free" title="Freely accessible"><a rel="nofollow" class="external text" href="https://www.ncbi.nlm.nih.gov/pmc/articles/PMC8784019">8784019</a></span>. <a href="/wiki/PMID_(identifier)" class="mw-redirect" title="PMID (identifier)">PMID</a> <a rel="nofollow" class="external text" href="https://pubmed.ncbi.nlm.nih.gov/35116198">35116198</a>.</cite><span title="ctx_ver=Z39.88-2004&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&rft.genre=article&rft.jtitle=PeerJ&rft.atitle=Should+I+use+fixed+effects+or+random+effects+when+I+have+fewer+than+five+levels+of+a+grouping+factor+in+a+mixed-effects+model%3F&rft.volume=10&rft.pages=e12794&rft.date=2022-01-20&rft_id=https%3A%2F%2Fwww.ncbi.nlm.nih.gov%2Fpmc%2Farticles%2FPMC8784019%23id-name%3DPMC&rft_id=info%3Apmid%2F35116198&rft_id=info%3Adoi%2F10.7717%2Fpeerj.12794&rft.aulast=Gomes&rft.aufirst=Dylan+G.E.&rft_id=https%3A%2F%2Fwww.ncbi.nlm.nih.gov%2Fpmc%2Farticles%2FPMC8784019&rfr_id=info%3Asid%2Fen.wikipedia.org%3AMixed+model" class="Z3988"></span></span> </li> <li id="cite_note-3"><span class="mw-cite-backlink"><b><a href="#cite_ref-3">^</a></b></span> <span class="reference-text"><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1238218222"><cite id="CITEREFYangZaitlenGoddardVisscher2014" class="citation journal cs1">Yang, Jian; Zaitlen, NA; Goddard, ME; Visscher, PM; Prince, AL (29 January 2014). <a rel="nofollow" class="external text" href="https://www.ncbi.nlm.nih.gov/pmc/articles/PMC3989144">"Advantages and pitfalls in the application of mixed-model association methods"</a>. <i>Nat Genet</i>. <b>46</b> (2): <span class="nowrap">100–</span>106. <a href="/wiki/Doi_(identifier)" class="mw-redirect" title="Doi (identifier)">doi</a>:<a rel="nofollow" class="external text" href="https://doi.org/10.1038%2Fng.2876">10.1038/ng.2876</a>. <a href="/wiki/PMC_(identifier)" class="mw-redirect" title="PMC (identifier)">PMC</a> <span class="id-lock-free" title="Freely accessible"><a rel="nofollow" class="external text" href="https://www.ncbi.nlm.nih.gov/pmc/articles/PMC3989144">3989144</a></span>. <a href="/wiki/PMID_(identifier)" class="mw-redirect" title="PMID (identifier)">PMID</a> <a rel="nofollow" class="external text" href="https://pubmed.ncbi.nlm.nih.gov/24473328">24473328</a>.</cite><span title="ctx_ver=Z39.88-2004&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&rft.genre=article&rft.jtitle=Nat+Genet&rft.atitle=Advantages+and+pitfalls+in+the+application+of+mixed-model+association+methods&rft.volume=46&rft.issue=2&rft.pages=%3Cspan+class%3D%22nowrap%22%3E100-%3C%2Fspan%3E106&rft.date=2014-01-29&rft_id=https%3A%2F%2Fwww.ncbi.nlm.nih.gov%2Fpmc%2Farticles%2FPMC3989144%23id-name%3DPMC&rft_id=info%3Apmid%2F24473328&rft_id=info%3Adoi%2F10.1038%2Fng.2876&rft.aulast=Yang&rft.aufirst=Jian&rft.au=Zaitlen%2C+NA&rft.au=Goddard%2C+ME&rft.au=Visscher%2C+PM&rft.au=Prince%2C+AL&rft_id=https%3A%2F%2Fwww.ncbi.nlm.nih.gov%2Fpmc%2Farticles%2FPMC3989144&rfr_id=info%3Asid%2Fen.wikipedia.org%3AMixed+model" class="Z3988"></span></span> </li> <li id="cite_note-:0-4"><span class="mw-cite-backlink">^ <a href="#cite_ref-:0_4-0"><sup><i><b>a</b></i></sup></a> <a href="#cite_ref-:0_4-1"><sup><i><b>b</b></i></sup></a></span> <span class="reference-text"><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1238218222"><cite id="CITEREFSeltman2016" class="citation book cs1">Seltman, Howard (2016). <a rel="nofollow" class="external text" href="https://www.stat.cmu.edu/~hseltman/309/Book/"><i>Experimental Design and Analysis</i></a>. Vol. 1. pp. <span class="nowrap">357–</span>378.</cite><span title="ctx_ver=Z39.88-2004&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Abook&rft.genre=book&rft.btitle=Experimental+Design+and+Analysis&rft.pages=%3Cspan+class%3D%22nowrap%22%3E357-%3C%2Fspan%3E378&rft.date=2016&rft.aulast=Seltman&rft.aufirst=Howard&rft_id=https%3A%2F%2Fwww.stat.cmu.edu%2F~hseltman%2F309%2FBook%2F&rfr_id=info%3Asid%2Fen.wikipedia.org%3AMixed+model" class="Z3988"></span></span> </li> <li id="cite_note-:4-5"><span class="mw-cite-backlink">^ <a href="#cite_ref-:4_5-0"><sup><i><b>a</b></i></sup></a> <a href="#cite_ref-:4_5-1"><sup><i><b>b</b></i></sup></a></span> <span class="reference-text"><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1238218222"><cite class="citation web cs1"><a rel="nofollow" class="external text" href="https://stats.oarc.ucla.edu/other/mult-pkg/introduction-to-linear-mixed-models/">"Introduction to Linear Mixed Models"</a>. <i>Advanced Research Computing Statistical Methods and Data Analytics</i>. UCLA Statistical Consulting Group. 2021.</cite><span title="ctx_ver=Z39.88-2004&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&rft.genre=unknown&rft.jtitle=Advanced+Research+Computing+Statistical+Methods+and+Data+Analytics&rft.atitle=Introduction+to+Linear+Mixed+Models&rft.date=2021&rft_id=https%3A%2F%2Fstats.oarc.ucla.edu%2Fother%2Fmult-pkg%2Fintroduction-to-linear-mixed-models%2F&rfr_id=info%3Asid%2Fen.wikipedia.org%3AMixed+model" class="Z3988"></span></span> </li> <li id="cite_note-6"><span class="mw-cite-backlink"><b><a href="#cite_ref-6">^</a></b></span> <span class="reference-text"><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1238218222"><cite id="CITEREFJuddWestfallKenny2012" class="citation journal cs1">Judd, Charles M.; Westfall, Jacob; Kenny, David A. (2012). "Treating stimuli as a random factor in social psychology: A new and comprehensive solution to a pervasive but largely ignored problem". <i>Journal of Personality and Social Psychology</i>. <b>103</b> (1): <span class="nowrap">54–</span>69. <a href="/wiki/Doi_(identifier)" class="mw-redirect" title="Doi (identifier)">doi</a>:<a rel="nofollow" class="external text" href="https://doi.org/10.1037%2Fa0028347">10.1037/a0028347</a>.</cite><span title="ctx_ver=Z39.88-2004&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&rft.genre=article&rft.jtitle=Journal+of+Personality+and+Social+Psychology&rft.atitle=Treating+stimuli+as+a+random+factor+in+social+psychology%3A+A+new+and+comprehensive+solution+to+a+pervasive+but+largely+ignored+problem.&rft.volume=103&rft.issue=1&rft.pages=%3Cspan+class%3D%22nowrap%22%3E54-%3C%2Fspan%3E69&rft.date=2012&rft_id=info%3Adoi%2F10.1037%2Fa0028347&rft.aulast=Judd&rft.aufirst=Charles+M.&rft.au=Westfall%2C+Jacob&rft.au=Kenny%2C+David+A.&rfr_id=info%3Asid%2Fen.wikipedia.org%3AMixed+model" class="Z3988"></span></span> </li> <li id="cite_note-7"><span class="mw-cite-backlink"><b><a href="#cite_ref-7">^</a></b></span> <span class="reference-text"><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1238218222"><cite id="CITEREFBoisgontierCheval2016" class="citation journal cs1">Boisgontier, Matthieu P.; Cheval, Boris (September 2016). <a rel="nofollow" class="external text" href="https://linkinghub.elsevier.com/retrieve/pii/S0149763416301634">"The anova to mixed model transition"</a>. <i>Neuroscience & Biobehavioral Reviews</i>. <b>68</b>: <span class="nowrap">1004–</span>1005. <a href="/wiki/Doi_(identifier)" class="mw-redirect" title="Doi (identifier)">doi</a>:<a rel="nofollow" class="external text" href="https://doi.org/10.1016%2Fj.neubiorev.2016.05.034">10.1016/j.neubiorev.2016.05.034</a>.</cite><span title="ctx_ver=Z39.88-2004&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&rft.genre=article&rft.jtitle=Neuroscience+%26+Biobehavioral+Reviews&rft.atitle=The+anova+to+mixed+model+transition&rft.volume=68&rft.pages=%3Cspan+class%3D%22nowrap%22%3E1004-%3C%2Fspan%3E1005&rft.date=2016-09&rft_id=info%3Adoi%2F10.1016%2Fj.neubiorev.2016.05.034&rft.aulast=Boisgontier&rft.aufirst=Matthieu+P.&rft.au=Cheval%2C+Boris&rft_id=https%3A%2F%2Flinkinghub.elsevier.com%2Fretrieve%2Fpii%2FS0149763416301634&rfr_id=info%3Asid%2Fen.wikipedia.org%3AMixed+model" class="Z3988"></span></span> </li> <li id="cite_note-8"><span class="mw-cite-backlink"><b><a href="#cite_ref-8">^</a></b></span> <span class="reference-text"><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1238218222"><cite id="CITEREFSchmidt-CatranFairbrother2016" class="citation journal cs1">Schmidt-Catran, Alexander W.; Fairbrother, Malcolm (February 2016). "The Random Effects in Multilevel Models: Getting Them Wrong and Getting Them Right". <i>European Sociological Review</i>. <b>32</b> (1): <span class="nowrap">23–</span>38. <a href="/wiki/Doi_(identifier)" class="mw-redirect" title="Doi (identifier)">doi</a>:<a rel="nofollow" class="external text" href="https://doi.org/10.1093%2Fesr%2Fjcv090">10.1093/esr/jcv090</a>. <a href="/wiki/Hdl_(identifier)" class="mw-redirect" title="Hdl (identifier)">hdl</a>:<span class="id-lock-free" title="Freely accessible"><a rel="nofollow" class="external text" href="https://hdl.handle.net/1983%2Fde3e0a3c-9b41-4963-880c-452809860a7e">1983/de3e0a3c-9b41-4963-880c-452809860a7e</a></span>.</cite><span title="ctx_ver=Z39.88-2004&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&rft.genre=article&rft.jtitle=European+Sociological+Review&rft.atitle=The+Random+Effects+in+Multilevel+Models%3A+Getting+Them+Wrong+and+Getting+Them+Right&rft.volume=32&rft.issue=1&rft.pages=%3Cspan+class%3D%22nowrap%22%3E23-%3C%2Fspan%3E38&rft.date=2016-02&rft_id=info%3Ahdl%2F1983%2Fde3e0a3c-9b41-4963-880c-452809860a7e&rft_id=info%3Adoi%2F10.1093%2Fesr%2Fjcv090&rft.aulast=Schmidt-Catran&rft.aufirst=Alexander+W.&rft.au=Fairbrother%2C+Malcolm&rfr_id=info%3Asid%2Fen.wikipedia.org%3AMixed+model" class="Z3988"></span></span> </li> <li id="cite_note-:1-9"><span class="mw-cite-backlink">^ <a href="#cite_ref-:1_9-0"><sup><i><b>a</b></i></sup></a> <a href="#cite_ref-:1_9-1"><sup><i><b>b</b></i></sup></a></span> <span class="reference-text"><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1238218222"><cite id="CITEREFKreft_&_de_Leeuw" class="citation book cs1">Kreft & de Leeuw, J. <i>Introducing multilevel modeling</i>. London:Sage.</cite><span title="ctx_ver=Z39.88-2004&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Abook&rft.genre=book&rft.btitle=Introducing+multilevel+modeling&rft.pub=London%3ASage&rft.aulast=Kreft+%26+de+Leeuw&rft.aufirst=J.&rfr_id=info%3Asid%2Fen.wikipedia.org%3AMixed+model" class="Z3988"></span></span> </li> <li id="cite_note-:2-10"><span class="mw-cite-backlink">^ <a href="#cite_ref-:2_10-0"><sup><i><b>a</b></i></sup></a> <a href="#cite_ref-:2_10-1"><sup><i><b>b</b></i></sup></a></span> <span class="reference-text"><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1238218222"><cite id="CITEREFRaudenbush,_Bryk2002" class="citation book cs1">Raudenbush, Bryk, S.W, A.S (2002). <i>Hierarchical Linear Models: Applications and Data Analysis Methods</i>. Thousand Oaks, CA: Sage.</cite><span title="ctx_ver=Z39.88-2004&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Abook&rft.genre=book&rft.btitle=Hierarchical+Linear+Models%3A+Applications+and+Data+Analysis+Methods&rft.pub=Thousand+Oaks%2C+CA%3A+Sage&rft.date=2002&rft.aulast=Raudenbush%2C+Bryk&rft.aufirst=S.W%2C+A.S&rfr_id=info%3Asid%2Fen.wikipedia.org%3AMixed+model" class="Z3988"></span><span class="cs1-maint citation-comment"><code class="cs1-code">{{<a href="/wiki/Template:Cite_book" title="Template:Cite book">cite book</a>}}</code>: CS1 maint: multiple names: authors list (<a href="/wiki/Category:CS1_maint:_multiple_names:_authors_list" title="Category:CS1 maint: multiple names: authors list">link</a>)</span></span> </li> <li id="cite_note-:3-11"><span class="mw-cite-backlink">^ <a href="#cite_ref-:3_11-0"><sup><i><b>a</b></i></sup></a> <a href="#cite_ref-:3_11-1"><sup><i><b>b</b></i></sup></a></span> <span class="reference-text"><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1238218222"><cite id="CITEREFSnijders,_Bosker2012" class="citation book cs1 cs1-prop-long-vol">Snijders, Bosker, T.A.B, R.J (2012). <i>Multilevel analysis: An introduction to basic and advanced multilevel modeling</i>. Vol. 2nd edition. London:Sage.</cite><span title="ctx_ver=Z39.88-2004&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Abook&rft.genre=book&rft.btitle=Multilevel+analysis%3A+An+introduction+to+basic+and+advanced+multilevel+modeling&rft.pub=London%3ASage&rft.date=2012&rft.aulast=Snijders%2C+Bosker&rft.aufirst=T.A.B%2C+R.J&rfr_id=info%3Asid%2Fen.wikipedia.org%3AMixed+model" class="Z3988"></span><span class="cs1-maint citation-comment"><code class="cs1-code">{{<a href="/wiki/Template:Cite_book" title="Template:Cite book">cite book</a>}}</code>: CS1 maint: multiple names: authors list (<a href="/wiki/Category:CS1_maint:_multiple_names:_authors_list" title="Category:CS1 maint: multiple names: authors list">link</a>)</span></span> </li> <li id="cite_note-12"><span class="mw-cite-backlink"><b><a href="#cite_ref-12">^</a></b></span> <span class="reference-text"><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1238218222"><cite id="CITEREFFisher1918" class="citation journal cs1">Fisher, RA (1918). <a rel="nofollow" class="external text" href="https://zenodo.org/record/1428666">"The correlation between relatives on the supposition of Mendelian inheritance"</a>. <i>Transactions of the Royal Society of Edinburgh</i>. <b>52</b> (2): <span class="nowrap">399–</span>433. <a href="/wiki/Doi_(identifier)" class="mw-redirect" title="Doi (identifier)">doi</a>:<a rel="nofollow" class="external text" href="https://doi.org/10.1017%2FS0080456800012163">10.1017/S0080456800012163</a>. <a href="/wiki/S2CID_(identifier)" class="mw-redirect" title="S2CID (identifier)">S2CID</a> <a rel="nofollow" class="external text" href="https://api.semanticscholar.org/CorpusID:181213898">181213898</a>.</cite><span title="ctx_ver=Z39.88-2004&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&rft.genre=article&rft.jtitle=Transactions+of+the+Royal+Society+of+Edinburgh&rft.atitle=The+correlation+between+relatives+on+the+supposition+of+Mendelian+inheritance&rft.volume=52&rft.issue=2&rft.pages=%3Cspan+class%3D%22nowrap%22%3E399-%3C%2Fspan%3E433&rft.date=1918&rft_id=info%3Adoi%2F10.1017%2FS0080456800012163&rft_id=https%3A%2F%2Fapi.semanticscholar.org%2FCorpusID%3A181213898%23id-name%3DS2CID&rft.aulast=Fisher&rft.aufirst=RA&rft_id=https%3A%2F%2Fzenodo.org%2Frecord%2F1428666&rfr_id=info%3Asid%2Fen.wikipedia.org%3AMixed+model" class="Z3988"></span></span> </li> <li id="cite_note-GKR1991-13"><span class="mw-cite-backlink">^ <a href="#cite_ref-GKR1991_13-0"><sup><i><b>a</b></i></sup></a> <a href="#cite_ref-GKR1991_13-1"><sup><i><b>b</b></i></sup></a></span> <span class="reference-text"><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1238218222"><cite id="CITEREFRobinson1991" class="citation journal cs1">Robinson, G.K. (1991). <a rel="nofollow" class="external text" href="https://doi.org/10.1214%2Fss%2F1177011926">"That BLUP is a Good Thing: The Estimation of Random Effects"</a>. <i>Statistical Science</i>. <b>6</b> (1): <span class="nowrap">15–</span>32. <a href="/wiki/Doi_(identifier)" class="mw-redirect" title="Doi (identifier)">doi</a>:<span class="id-lock-free" title="Freely accessible"><a rel="nofollow" class="external text" href="https://doi.org/10.1214%2Fss%2F1177011926">10.1214/ss/1177011926</a></span>. <a href="/wiki/JSTOR_(identifier)" class="mw-redirect" title="JSTOR (identifier)">JSTOR</a> <a rel="nofollow" class="external text" href="https://www.jstor.org/stable/2245695">2245695</a>.</cite><span title="ctx_ver=Z39.88-2004&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&rft.genre=article&rft.jtitle=Statistical+Science&rft.atitle=That+BLUP+is+a+Good+Thing%3A+The+Estimation+of+Random+Effects&rft.volume=6&rft.issue=1&rft.pages=%3Cspan+class%3D%22nowrap%22%3E15-%3C%2Fspan%3E32&rft.date=1991&rft_id=info%3Adoi%2F10.1214%2Fss%2F1177011926&rft_id=https%3A%2F%2Fwww.jstor.org%2Fstable%2F2245695%23id-name%3DJSTOR&rft.aulast=Robinson&rft.aufirst=G.K.&rft_id=https%3A%2F%2Fdoi.org%2F10.1214%252Fss%252F1177011926&rfr_id=info%3Asid%2Fen.wikipedia.org%3AMixed+model" class="Z3988"></span></span> </li> <li id="cite_note-14"><span class="mw-cite-backlink"><b><a href="#cite_ref-14">^</a></b></span> <span class="reference-text"><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1238218222"><cite id="CITEREFC._R._HendersonOscar_KempthorneS._R._SearleC._M._von_Krosigk1959" class="citation journal cs1">C. R. Henderson; Oscar Kempthorne; S. R. Searle; C. M. von Krosigk (1959). "The Estimation of Environmental and Genetic Trends from Records Subject to Culling". <i>Biometrics</i>. <b>15</b> (2). International Biometric Society: <span class="nowrap">192–</span>218. <a href="/wiki/Doi_(identifier)" class="mw-redirect" title="Doi (identifier)">doi</a>:<a rel="nofollow" class="external text" href="https://doi.org/10.2307%2F2527669">10.2307/2527669</a>. <a href="/wiki/JSTOR_(identifier)" class="mw-redirect" title="JSTOR (identifier)">JSTOR</a> <a rel="nofollow" class="external text" href="https://www.jstor.org/stable/2527669">2527669</a>.</cite><span title="ctx_ver=Z39.88-2004&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&rft.genre=article&rft.jtitle=Biometrics&rft.atitle=The+Estimation+of+Environmental+and+Genetic+Trends+from+Records+Subject+to+Culling&rft.volume=15&rft.issue=2&rft.pages=%3Cspan+class%3D%22nowrap%22%3E192-%3C%2Fspan%3E218&rft.date=1959&rft_id=info%3Adoi%2F10.2307%2F2527669&rft_id=https%3A%2F%2Fwww.jstor.org%2Fstable%2F2527669%23id-name%3DJSTOR&rft.au=C.+R.+Henderson&rft.au=Oscar+Kempthorne&rft.au=S.+R.+Searle&rft.au=C.+M.+von+Krosigk&rfr_id=info%3Asid%2Fen.wikipedia.org%3AMixed+model" class="Z3988"></span></span> </li> <li id="cite_note-LDVV1989-15"><span class="mw-cite-backlink">^ <a href="#cite_ref-LDVV1989_15-0"><sup><i><b>a</b></i></sup></a> <a href="#cite_ref-LDVV1989_15-1"><sup><i><b>b</b></i></sup></a></span> <span class="reference-text"><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1238218222"><cite id="CITEREFL._Dale_Van_Vleck" class="citation web cs1">L. Dale Van Vleck. <a rel="nofollow" class="external text" href="http://books.nap.edu/html/biomems/chenderson.pdf">"Charles Roy Henderson, April 1, 1911 – March 14, 1989"</a> <span class="cs1-format">(PDF)</span>. <a href="/wiki/United_States_National_Academy_of_Sciences" class="mw-redirect" title="United States National Academy of Sciences">United States National Academy of Sciences</a>.</cite><span title="ctx_ver=Z39.88-2004&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Abook&rft.genre=unknown&rft.btitle=Charles+Roy+Henderson%2C+April+1%2C+1911+%E2%80%93+March+14%2C+1989&rft.pub=United+States+National+Academy+of+Sciences&rft.au=L.+Dale+Van+Vleck&rft_id=http%3A%2F%2Fbooks.nap.edu%2Fhtml%2Fbiomems%2Fchenderson.pdf&rfr_id=info%3Asid%2Fen.wikipedia.org%3AMixed+model" class="Z3988"></span></span> </li> <li id="cite_note-16"><span class="mw-cite-backlink"><b><a href="#cite_ref-16">^</a></b></span> <span class="reference-text"><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1238218222"><cite id="CITEREFMcLeanSanders,_William_L.Stroup,_Walter_W.1991" class="citation journal cs1">McLean, Robert A.; Sanders, William L.; Stroup, Walter W. (1991). "A Unified Approach to Mixed Linear Models". <i>The American Statistician</i>. <b>45</b> (1). American Statistical Association: <span class="nowrap">54–</span>64. <a href="/wiki/Doi_(identifier)" class="mw-redirect" title="Doi (identifier)">doi</a>:<a rel="nofollow" class="external text" href="https://doi.org/10.2307%2F2685241">10.2307/2685241</a>. <a href="/wiki/JSTOR_(identifier)" class="mw-redirect" title="JSTOR (identifier)">JSTOR</a> <a rel="nofollow" class="external text" href="https://www.jstor.org/stable/2685241">2685241</a>.</cite><span title="ctx_ver=Z39.88-2004&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&rft.genre=article&rft.jtitle=The+American+Statistician&rft.atitle=A+Unified+Approach+to+Mixed+Linear+Models&rft.volume=45&rft.issue=1&rft.pages=%3Cspan+class%3D%22nowrap%22%3E54-%3C%2Fspan%3E64&rft.date=1991&rft_id=info%3Adoi%2F10.2307%2F2685241&rft_id=https%3A%2F%2Fwww.jstor.org%2Fstable%2F2685241%23id-name%3DJSTOR&rft.aulast=McLean&rft.aufirst=Robert+A.&rft.au=Sanders%2C+William+L.&rft.au=Stroup%2C+Walter+W.&rfr_id=info%3Asid%2Fen.wikipedia.org%3AMixed+model" class="Z3988"></span></span> </li> <li id="cite_note-17"><span class="mw-cite-backlink"><b><a href="#cite_ref-17">^</a></b></span> <span class="reference-text"><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1238218222"><cite id="CITEREFAnderson2016" class="citation web cs1">Anderson, R.J (2016). <a rel="nofollow" class="external text" href="http://www.cbssports.com/mlb/news/mlb-analytics-guru-who-could-be-the-next-nate-silver-has-a-revolutionary-new-stat/">"<span class="cs1-kern-left"></span>"MLB analytics guru who could be the next Nate Silver has a revolutionary new stat"<span class="cs1-kern-right"></span>"</a>.</cite><span title="ctx_ver=Z39.88-2004&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Abook&rft.genre=unknown&rft.btitle=%22MLB+analytics+guru+who+could+be+the+next+Nate+Silver+has+a+revolutionary+new+stat%22&rft.date=2016&rft.aulast=Anderson&rft.aufirst=R.J&rft_id=http%3A%2F%2Fwww.cbssports.com%2Fmlb%2Fnews%2Fmlb-analytics-guru-who-could-be-the-next-nate-silver-has-a-revolutionary-new-stat%2F&rfr_id=info%3Asid%2Fen.wikipedia.org%3AMixed+model" class="Z3988"></span></span> </li> <li id="cite_note-18"><span class="mw-cite-backlink"><b><a href="#cite_ref-18">^</a></b></span> <span class="reference-text"><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1238218222"><cite id="CITEREFObenchain,_Lilly1993" class="citation book cs1">Obenchain, Lilly, Bob, Eli (1993). <a rel="nofollow" class="external text" href="https://www.lexjansen.com/mwsug/1993/MWSUG93035.pdf"><i>"Data Analysis and Information Visualization"</i></a> <span class="cs1-format">(PDF)</span>. MWSUG.</cite><span title="ctx_ver=Z39.88-2004&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Abook&rft.genre=book&rft.btitle=%22Data+Analysis+and+Information+Visualization%22&rft.pub=MWSUG&rft.date=1993&rft.aulast=Obenchain%2C+Lilly&rft.aufirst=Bob%2C+Eli&rft_id=https%3A%2F%2Fwww.lexjansen.com%2Fmwsug%2F1993%2FMWSUG93035.pdf&rfr_id=info%3Asid%2Fen.wikipedia.org%3AMixed+model" class="Z3988"></span><span class="cs1-maint citation-comment"><code class="cs1-code">{{<a href="/wiki/Template:Cite_book" title="Template:Cite book">cite book</a>}}</code>: CS1 maint: multiple names: authors list (<a href="/wiki/Category:CS1_maint:_multiple_names:_authors_list" title="Category:CS1 maint: multiple names: authors list">link</a>)</span></span> </li> <li id="cite_note-19"><span class="mw-cite-backlink"><b><a href="#cite_ref-19">^</a></b></span> <span class="reference-text"><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1238218222"><cite id="CITEREFChenWangConomosStilp2016" class="citation journal cs1">Chen, H; Wang, C; Conomos, MP; Stilp, AM; Li, Z; Sofer, T; Szpiro, AA; Chen, W; Brehm, JM; Celedon, JC; Redline, S; Papanicolaou, S; Thorton, GJ; Thorton, TA; Laurie, CC; Rice, K; Lin, X (7 April 2016). <a rel="nofollow" class="external text" href="https://www.ncbi.nlm.nih.gov/pmc/articles/PMC4833218">"Control for Population Structure and Relatedness for Binary Traits in Genetic Association Studies via Logistic Mixed Models"</a>. <i>Am J Hum Genet</i>. <b>98</b> (4): <span class="nowrap">653–</span>666. <a href="/wiki/Doi_(identifier)" class="mw-redirect" title="Doi (identifier)">doi</a>:<a rel="nofollow" class="external text" href="https://doi.org/10.1016%2Fj.ajhg.2016.02.012">10.1016/j.ajhg.2016.02.012</a>. <a href="/wiki/PMC_(identifier)" class="mw-redirect" title="PMC (identifier)">PMC</a> <span class="id-lock-free" title="Freely accessible"><a rel="nofollow" class="external text" href="https://www.ncbi.nlm.nih.gov/pmc/articles/PMC4833218">4833218</a></span>. <a href="/wiki/PMID_(identifier)" class="mw-redirect" title="PMID (identifier)">PMID</a> <a rel="nofollow" class="external text" href="https://pubmed.ncbi.nlm.nih.gov/27018471">27018471</a>.</cite><span title="ctx_ver=Z39.88-2004&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&rft.genre=article&rft.jtitle=Am+J+Hum+Genet&rft.atitle=Control+for+Population+Structure+and+Relatedness+for+Binary+Traits+in+Genetic+Association+Studies+via+Logistic+Mixed+Models&rft.volume=98&rft.issue=4&rft.pages=%3Cspan+class%3D%22nowrap%22%3E653-%3C%2Fspan%3E666&rft.date=2016-04-07&rft_id=https%3A%2F%2Fwww.ncbi.nlm.nih.gov%2Fpmc%2Farticles%2FPMC4833218%23id-name%3DPMC&rft_id=info%3Apmid%2F27018471&rft_id=info%3Adoi%2F10.1016%2Fj.ajhg.2016.02.012&rft.aulast=Chen&rft.aufirst=H&rft.au=Wang%2C+C&rft.au=Conomos%2C+MP&rft.au=Stilp%2C+AM&rft.au=Li%2C+Z&rft.au=Sofer%2C+T&rft.au=Szpiro%2C+AA&rft.au=Chen%2C+W&rft.au=Brehm%2C+JM&rft.au=Celedon%2C+JC&rft.au=Redline%2C+S&rft.au=Papanicolaou%2C+S&rft.au=Thorton%2C+GJ&rft.au=Thorton%2C+TA&rft.au=Laurie%2C+CC&rft.au=Rice%2C+K&rft.au=Lin%2C+X&rft_id=https%3A%2F%2Fwww.ncbi.nlm.nih.gov%2Fpmc%2Farticles%2FPMC4833218&rfr_id=info%3Asid%2Fen.wikipedia.org%3AMixed+model" class="Z3988"></span></span> </li> <li id="cite_note-20"><span class="mw-cite-backlink"><b><a href="#cite_ref-20">^</a></b></span> <span class="reference-text"><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1238218222"><cite id="CITEREFHenderson1973" class="citation journal cs1">Henderson, C R (1973). <a rel="nofollow" class="external text" href="http://www.journalofanimalscience.org/content/1973/Symposium/10.full.pdf">"Sire evaluation and genetic trends"</a> <span class="cs1-format">(PDF)</span>. <i>Journal of Animal Science</i>. <b>1973</b>. American Society of Animal Science: <span class="nowrap">10–</span>41. <a href="/wiki/Doi_(identifier)" class="mw-redirect" title="Doi (identifier)">doi</a>:<a rel="nofollow" class="external text" href="https://doi.org/10.1093%2Fansci%2F1973.Symposium.10">10.1093/ansci/1973.Symposium.10</a><span class="reference-accessdate">. Retrieved <span class="nowrap">17 August</span> 2014</span>.</cite><span title="ctx_ver=Z39.88-2004&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&rft.genre=article&rft.jtitle=Journal+of+Animal+Science&rft.atitle=Sire+evaluation+and+genetic+trends&rft.volume=1973&rft.pages=%3Cspan+class%3D%22nowrap%22%3E10-%3C%2Fspan%3E41&rft.date=1973&rft_id=info%3Adoi%2F10.1093%2Fansci%2F1973.Symposium.10&rft.aulast=Henderson&rft.aufirst=C+R&rft_id=http%3A%2F%2Fwww.journalofanimalscience.org%2Fcontent%2F1973%2FSymposium%2F10.full.pdf&rfr_id=info%3Asid%2Fen.wikipedia.org%3AMixed+model" class="Z3988"></span></span> </li> <li id="cite_note-21"><span class="mw-cite-backlink"><b><a href="#cite_ref-21">^</a></b></span> <span class="reference-text"><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1238218222"><cite id="CITEREFBarrLevyScheepersTily2013" class="citation journal cs1">Barr, Dale J.; Levy, Roger; Scheepers, Christoph; Tily, Harry J. (April 2013). <a rel="nofollow" class="external text" href="https://www.ncbi.nlm.nih.gov/pmc/articles/PMC3881361">"Random effects structure for confirmatory hypothesis testing: Keep it maximal"</a>. <i>Journal of Memory and Language</i>. <b>68</b> (3): <span class="nowrap">255–</span>278. <a href="/wiki/Doi_(identifier)" class="mw-redirect" title="Doi (identifier)">doi</a>:<a rel="nofollow" class="external text" href="https://doi.org/10.1016%2Fj.jml.2012.11.001">10.1016/j.jml.2012.11.001</a>. <a href="/wiki/PMC_(identifier)" class="mw-redirect" title="PMC (identifier)">PMC</a> <span class="id-lock-free" title="Freely accessible"><a rel="nofollow" class="external text" href="https://www.ncbi.nlm.nih.gov/pmc/articles/PMC3881361">3881361</a></span>.</cite><span title="ctx_ver=Z39.88-2004&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&rft.genre=article&rft.jtitle=Journal+of+Memory+and+Language&rft.atitle=Random+effects+structure+for+confirmatory+hypothesis+testing%3A+Keep+it+maximal&rft.volume=68&rft.issue=3&rft.pages=%3Cspan+class%3D%22nowrap%22%3E255-%3C%2Fspan%3E278&rft.date=2013-04&rft_id=https%3A%2F%2Fwww.ncbi.nlm.nih.gov%2Fpmc%2Farticles%2FPMC3881361%23id-name%3DPMC&rft_id=info%3Adoi%2F10.1016%2Fj.jml.2012.11.001&rft.aulast=Barr&rft.aufirst=Dale+J.&rft.au=Levy%2C+Roger&rft.au=Scheepers%2C+Christoph&rft.au=Tily%2C+Harry+J.&rft_id=https%3A%2F%2Fwww.ncbi.nlm.nih.gov%2Fpmc%2Farticles%2FPMC3881361&rfr_id=info%3Asid%2Fen.wikipedia.org%3AMixed+model" class="Z3988"></span></span> </li> <li id="cite_note-22"><span class="mw-cite-backlink"><b><a href="#cite_ref-22">^</a></b></span> <span class="reference-text"><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1238218222"><cite id="CITEREFLindstromBates,_DM1988" class="citation journal cs1">Lindstrom, ML; Bates, DM (1988). "Newton–Raphson and EM algorithms for linear mixed-effects models for repeated-measures data". <i>Journal of the American Statistical Association</i>. <b>83</b> (404): <span class="nowrap">1014–</span>1021. <a href="/wiki/Doi_(identifier)" class="mw-redirect" title="Doi (identifier)">doi</a>:<a rel="nofollow" class="external text" href="https://doi.org/10.1080%2F01621459.1988.10478693">10.1080/01621459.1988.10478693</a>.</cite><span title="ctx_ver=Z39.88-2004&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&rft.genre=article&rft.jtitle=Journal+of+the+American+Statistical+Association&rft.atitle=Newton%E2%80%93Raphson+and+EM+algorithms+for+linear+mixed-effects+models+for+repeated-measures+data&rft.volume=83&rft.issue=404&rft.pages=%3Cspan+class%3D%22nowrap%22%3E1014-%3C%2Fspan%3E1021&rft.date=1988&rft_id=info%3Adoi%2F10.1080%2F01621459.1988.10478693&rft.aulast=Lindstrom&rft.aufirst=ML&rft.au=Bates%2C+DM&rfr_id=info%3Asid%2Fen.wikipedia.org%3AMixed+model" class="Z3988"></span></span> </li> <li id="cite_note-23"><span class="mw-cite-backlink"><b><a href="#cite_ref-23">^</a></b></span> <span class="reference-text"><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1238218222"><cite id="CITEREFLairdWare,_James_H.1982" class="citation journal cs1">Laird, Nan M.; Ware, James H. (1982). "Random-Effects Models for Longitudinal Data". <i>Biometrics</i>. <b>38</b> (4). International Biometric Society: <span class="nowrap">963–</span>974. <a href="/wiki/Doi_(identifier)" class="mw-redirect" title="Doi (identifier)">doi</a>:<a rel="nofollow" class="external text" href="https://doi.org/10.2307%2F2529876">10.2307/2529876</a>. <a href="/wiki/JSTOR_(identifier)" class="mw-redirect" title="JSTOR (identifier)">JSTOR</a> <a rel="nofollow" class="external text" href="https://www.jstor.org/stable/2529876">2529876</a>. <a href="/wiki/PMID_(identifier)" class="mw-redirect" title="PMID (identifier)">PMID</a> <a rel="nofollow" class="external text" href="https://pubmed.ncbi.nlm.nih.gov/7168798">7168798</a>.</cite><span title="ctx_ver=Z39.88-2004&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&rft.genre=article&rft.jtitle=Biometrics&rft.atitle=Random-Effects+Models+for+Longitudinal+Data&rft.volume=38&rft.issue=4&rft.pages=%3Cspan+class%3D%22nowrap%22%3E963-%3C%2Fspan%3E974&rft.date=1982&rft_id=info%3Apmid%2F7168798&rft_id=https%3A%2F%2Fwww.jstor.org%2Fstable%2F2529876%23id-name%3DJSTOR&rft_id=info%3Adoi%2F10.2307%2F2529876&rft.aulast=Laird&rft.aufirst=Nan+M.&rft.au=Ware%2C+James+H.&rfr_id=info%3Asid%2Fen.wikipedia.org%3AMixed+model" class="Z3988"></span></span> </li> <li id="cite_note-24"><span class="mw-cite-backlink"><b><a href="#cite_ref-24">^</a></b></span> <span class="reference-text"><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1238218222"><cite id="CITEREFFitzmauriceLairdWare2004" class="citation book cs1">Fitzmaurice, Garrett M.; Laird, Nan M.; Ware, James H. (2004). <i>Applied Longitudinal Analysis</i>. John Wiley & Sons. pp. <span class="nowrap">326–</span>328.</cite><span title="ctx_ver=Z39.88-2004&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Abook&rft.genre=book&rft.btitle=Applied+Longitudinal+Analysis&rft.pages=%3Cspan+class%3D%22nowrap%22%3E326-%3C%2Fspan%3E328&rft.pub=John+Wiley+%26+Sons&rft.date=2004&rft.aulast=Fitzmaurice&rft.aufirst=Garrett+M.&rft.au=Laird%2C+Nan+M.&rft.au=Ware%2C+James+H.&rfr_id=info%3Asid%2Fen.wikipedia.org%3AMixed+model" class="Z3988"></span></span> </li> <li id="cite_note-pinheiro_bates2006-25"><span class="mw-cite-backlink"><b><a href="#cite_ref-pinheiro_bates2006_25-0">^</a></b></span> <span class="reference-text"><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1238218222"><cite id="CITEREFPinheiroBates2006" class="citation book cs1">Pinheiro, J; Bates, DM (2006). <i>Mixed-effects models in S and S-PLUS</i>. Statistics and Computing. New York: Springer Science & Business Media. <a href="/wiki/Doi_(identifier)" class="mw-redirect" title="Doi (identifier)">doi</a>:<a rel="nofollow" class="external text" href="https://doi.org/10.1007%2Fb98882">10.1007/b98882</a>. <a href="/wiki/ISBN_(identifier)" class="mw-redirect" title="ISBN (identifier)">ISBN</a> <a href="/wiki/Special:BookSources/0-387-98957-9" title="Special:BookSources/0-387-98957-9"><bdi>0-387-98957-9</bdi></a>.</cite><span title="ctx_ver=Z39.88-2004&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Abook&rft.genre=book&rft.btitle=Mixed-effects+models+in+S+and+S-PLUS&rft.place=New+York&rft.series=Statistics+and+Computing&rft.pub=Springer+Science+%26+Business+Media&rft.date=2006&rft_id=info%3Adoi%2F10.1007%2Fb98882&rft.isbn=0-387-98957-9&rft.aulast=Pinheiro&rft.aufirst=J&rft.au=Bates%2C+DM&rfr_id=info%3Asid%2Fen.wikipedia.org%3AMixed+model" class="Z3988"></span></span> </li> <li id="cite_note-26"><span class="mw-cite-backlink"><b><a href="#cite_ref-26">^</a></b></span> <span class="reference-text"><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1238218222"><cite id="CITEREFBatesMaechler,_M.Bolker,_B.Walker,_S.2015" class="citation journal cs1">Bates, D.; Maechler, M.; Bolker, B.; Walker, S. (2015). <a rel="nofollow" class="external text" href="https://doi.org/10.18637%2Fjss.v067.i01">"Fitting Linear Mixed-Effects Models Using lme4"</a>. <i>Journal of Statistical Software</i>. <b>67</b> (1). <a href="/wiki/Doi_(identifier)" class="mw-redirect" title="Doi (identifier)">doi</a>:<span class="id-lock-free" title="Freely accessible"><a rel="nofollow" class="external text" href="https://doi.org/10.18637%2Fjss.v067.i01">10.18637/jss.v067.i01</a></span>. <a href="/wiki/Hdl_(identifier)" class="mw-redirect" title="Hdl (identifier)">hdl</a>:<span class="id-lock-free" title="Freely accessible"><a rel="nofollow" class="external text" href="https://hdl.handle.net/2027.42%2F146808">2027.42/146808</a></span>.</cite><span title="ctx_ver=Z39.88-2004&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&rft.genre=article&rft.jtitle=Journal+of+Statistical+Software&rft.atitle=Fitting+Linear+Mixed-Effects+Models+Using+lme4&rft.volume=67&rft.issue=1&rft.date=2015&rft_id=info%3Ahdl%2F2027.42%2F146808&rft_id=info%3Adoi%2F10.18637%2Fjss.v067.i01&rft.aulast=Bates&rft.aufirst=D.&rft.au=Maechler%2C+M.&rft.au=Bolker%2C+B.&rft.au=Walker%2C+S.&rft_id=https%3A%2F%2Fdoi.org%2F10.18637%252Fjss.v067.i01&rfr_id=info%3Asid%2Fen.wikipedia.org%3AMixed+model" class="Z3988"></span></span> </li> <li id="cite_note-27"><span class="mw-cite-backlink"><b><a href="#cite_ref-27">^</a></b></span> <span class="reference-text"><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1238218222"><cite id="CITEREFBürkner2017" class="citation journal cs1">Bürkner, Paul-Christian (2017). <a rel="nofollow" class="external text" href="https://doi.org/10.18637%2Fjss.v080.i01">"brms : An R Package for Bayesian Multilevel Models Using Stan"</a>. <i>Journal of Statistical Software</i>. <b>80</b> (1). <a href="/wiki/Doi_(identifier)" class="mw-redirect" title="Doi (identifier)">doi</a>:<span class="id-lock-free" title="Freely accessible"><a rel="nofollow" class="external text" href="https://doi.org/10.18637%2Fjss.v080.i01">10.18637/jss.v080.i01</a></span>.</cite><span title="ctx_ver=Z39.88-2004&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&rft.genre=article&rft.jtitle=Journal+of+Statistical+Software&rft.atitle=brms+%3A+An+R+Package+for+Bayesian+Multilevel+Models+Using+Stan&rft.volume=80&rft.issue=1&rft.date=2017&rft_id=info%3Adoi%2F10.18637%2Fjss.v080.i01&rft.aulast=B%C3%BCrkner&rft.aufirst=Paul-Christian&rft_id=https%3A%2F%2Fdoi.org%2F10.18637%252Fjss.v080.i01&rfr_id=info%3Asid%2Fen.wikipedia.org%3AMixed+model" class="Z3988"></span></span> </li> <li id="cite_note-28"><span class="mw-cite-backlink"><b><a href="#cite_ref-28">^</a></b></span> <span class="reference-text"><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1238218222"><cite id="CITEREFBürkner2018" class="citation journal cs1">Bürkner, Paul-Christian (2018). "Advanced Bayesian Multilevel Modeling with the R Package brms". <i>The R Journal</i>. <b>10</b> (1): 395. <a href="/wiki/ArXiv_(identifier)" class="mw-redirect" title="ArXiv (identifier)">arXiv</a>:<span class="id-lock-free" title="Freely accessible"><a rel="nofollow" class="external text" href="https://arxiv.org/abs/1705.11123">1705.11123</a></span>. <a href="/wiki/Doi_(identifier)" class="mw-redirect" title="Doi (identifier)">doi</a>:<a rel="nofollow" class="external text" href="https://doi.org/10.32614%2FRJ-2018-017">10.32614/RJ-2018-017</a>.</cite><span title="ctx_ver=Z39.88-2004&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&rft.genre=article&rft.jtitle=The+R+Journal&rft.atitle=Advanced+Bayesian+Multilevel+Modeling+with+the+R+Package+brms&rft.volume=10&rft.issue=1&rft.pages=395&rft.date=2018&rft_id=info%3Aarxiv%2F1705.11123&rft_id=info%3Adoi%2F10.32614%2FRJ-2018-017&rft.aulast=B%C3%BCrkner&rft.aufirst=Paul-Christian&rfr_id=info%3Asid%2Fen.wikipedia.org%3AMixed+model" class="Z3988"></span></span> </li> <li id="cite_note-29"><span class="mw-cite-backlink"><b><a href="#cite_ref-29">^</a></b></span> <span class="reference-text"><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1238218222"><cite id="CITEREFCaprettoPihoKumarWestfall2022" class="citation cs2">Capretto, Tomás; Piho, Camen; Kumar, Ravin; Westfall, Jacob; Yarkoni, Tal; Martin, Osvaldo A. (2022-01-11), <a rel="nofollow" class="external text" href="https://arxiv.org/abs/2012.10754"><i>Bambi: A simple interface for fitting Bayesian linear models in Python</i></a>, <a href="/wiki/Doi_(identifier)" class="mw-redirect" title="Doi (identifier)">doi</a>:<a rel="nofollow" class="external text" href="https://doi.org/10.48550%2FarXiv.2012.10754">10.48550/arXiv.2012.10754</a><span class="reference-accessdate">, retrieved <span class="nowrap">2025-01-11</span></span></cite><span title="ctx_ver=Z39.88-2004&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Abook&rft.genre=book&rft.btitle=Bambi%3A+A+simple+interface+for+fitting+Bayesian+linear+models+in+Python&rft.date=2022-01-11&rft_id=info%3Adoi%2F10.48550%2FarXiv.2012.10754&rft.aulast=Capretto&rft.aufirst=Tom%C3%A1s&rft.au=Piho%2C+Camen&rft.au=Kumar%2C+Ravin&rft.au=Westfall%2C+Jacob&rft.au=Yarkoni%2C+Tal&rft.au=Martin%2C+Osvaldo+A.&rft_id=https%3A%2F%2Farxiv.org%2Fabs%2F2012.10754&rfr_id=info%3Asid%2Fen.wikipedia.org%3AMixed+model" class="Z3988"></span></span> </li> </ol></div></div> <div class="mw-heading mw-heading2"><h2 id="Further_reading">Further reading</h2><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=Mixed_model&action=edit&section=11" title="Edit section: Further reading"><span>edit</span></a><span class="mw-editsection-bracket">]</span></span></div> <ul><li><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1238218222"><cite id="CITEREFGałeckiBurzykowski2013" class="citation book cs1">Gałecki, Andrzej; Burzykowski, Tomasz (2013). <i>Linear Mixed-Effects Models Using R: A Step-by-Step Approach</i>. New York: Springer. <a href="/wiki/ISBN_(identifier)" class="mw-redirect" title="ISBN (identifier)">ISBN</a> <a href="/wiki/Special:BookSources/978-1-4614-3900-4" title="Special:BookSources/978-1-4614-3900-4"><bdi>978-1-4614-3900-4</bdi></a>.</cite><span title="ctx_ver=Z39.88-2004&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Abook&rft.genre=book&rft.btitle=Linear+Mixed-Effects+Models+Using+R%3A+A+Step-by-Step+Approach&rft.place=New+York&rft.pub=Springer&rft.date=2013&rft.isbn=978-1-4614-3900-4&rft.aulast=Ga%C5%82ecki&rft.aufirst=Andrzej&rft.au=Burzykowski%2C+Tomasz&rfr_id=info%3Asid%2Fen.wikipedia.org%3AMixed+model" class="Z3988"></span></li> <li><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1238218222"><cite id="CITEREFMillikenJohnson1992" class="citation book cs1">Milliken, G. A.; Johnson, D. E. (1992). <i>Analysis of Messy Data: Vol. I. Designed Experiments</i>. New York: Chapman & Hall.</cite><span title="ctx_ver=Z39.88-2004&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Abook&rft.genre=book&rft.btitle=Analysis+of+Messy+Data%3A+Vol.+I.+Designed+Experiments&rft.place=New+York&rft.pub=Chapman+%26+Hall&rft.date=1992&rft.aulast=Milliken&rft.aufirst=G.+A.&rft.au=Johnson%2C+D.+E.&rfr_id=info%3Asid%2Fen.wikipedia.org%3AMixed+model" class="Z3988"></span></li> <li><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1238218222"><cite id="CITEREFWestWelchGalecki2007" class="citation book cs1">West, B. T.; Welch, K. B.; Galecki, A. T. (2007). <i>Linear Mixed Models: A Practical Guide Using Statistical Software</i>. New York: Chapman & Hall/CRC.</cite><span title="ctx_ver=Z39.88-2004&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Abook&rft.genre=book&rft.btitle=Linear+Mixed+Models%3A+A+Practical+Guide+Using+Statistical+Software&rft.place=New+York&rft.pub=Chapman+%26+Hall%2FCRC&rft.date=2007&rft.aulast=West&rft.aufirst=B.+T.&rft.au=Welch%2C+K.+B.&rft.au=Galecki%2C+A.+T.&rfr_id=info%3Asid%2Fen.wikipedia.org%3AMixed+model" class="Z3988"></span></li></ul> <!-- NewPP limit report Parsed by mw‐api‐ext.eqiad.main‐75fb65f6ff‐7tcps Cached time: 20250211001148 Cache expiry: 2592000 Reduced expiry: false Complications: [vary‐revision‐sha1, show‐toc] CPU time usage: 0.425 seconds Real time usage: 0.654 seconds Preprocessor visited node count: 2353/1000000 Post‐expand include size: 78034/2097152 bytes Template argument size: 959/2097152 bytes Highest expansion depth: 8/100 Expensive parser function count: 3/500 Unstrip recursion depth: 1/20 Unstrip post‐expand size: 126723/5000000 bytes Lua time usage: 0.271/10.000 seconds Lua memory usage: 6139947/52428800 bytes Number of Wikibase entities loaded: 0/400 --> <!-- Transclusion expansion time report (%,ms,calls,template) 100.00% 466.794 1 -total 49.33% 230.261 1 Template:Reflist 25.72% 120.082 11 Template:Cite_book 18.66% 87.095 1 Template:Regression_bar 17.91% 83.584 1 Template:Sidebar 17.37% 81.063 17 Template:Cite_journal 15.34% 71.624 1 Template:Short_description 9.49% 44.300 2 Template:Pagetype 5.03% 23.495 1 Template:Distinguish 4.34% 20.257 11 Template:Mvar --> <!-- Saved in parser cache with key enwiki:pcache:5431921:|#|:idhash:canonical and timestamp 20250211001148 and revision id 1275088582. Rendering was triggered because: api-parse --> </div><!--esi <esi:include src="/esitest-fa8a495983347898/content" /> --><noscript><img src="https://login.wikimedia.org/wiki/Special:CentralAutoLogin/start?useformat=desktop&type=1x1&usesul3=0" alt="" width="1" height="1" style="border: none; position: absolute;"></noscript> <div class="printfooter" data-nosnippet="">Retrieved from "<a dir="ltr" href="https://en.wikipedia.org/w/index.php?title=Mixed_model&oldid=1275088582">https://en.wikipedia.org/w/index.php?title=Mixed_model&oldid=1275088582</a>"</div></div> <div id="catlinks" class="catlinks" data-mw="interface"><div id="mw-normal-catlinks" class="mw-normal-catlinks"><a href="/wiki/Help:Category" title="Help:Category">Categories</a>: <ul><li><a href="/wiki/Category:Regression_models" title="Category:Regression models">Regression models</a></li><li><a href="/wiki/Category:Analysis_of_variance" title="Category:Analysis of variance">Analysis of variance</a></li></ul></div><div id="mw-hidden-catlinks" class="mw-hidden-catlinks mw-hidden-cats-hidden">Hidden categories: <ul><li><a href="/wiki/Category:CS1_maint:_multiple_names:_authors_list" title="Category:CS1 maint: multiple names: authors list">CS1 maint: multiple names: authors list</a></li><li><a href="/wiki/Category:CS1:_long_volume_value" title="Category:CS1: long volume value">CS1: long volume value</a></li><li><a href="/wiki/Category:Articles_with_short_description" title="Category:Articles with short description">Articles with short description</a></li><li><a href="/wiki/Category:Short_description_matches_Wikidata" title="Category:Short description matches Wikidata">Short description matches Wikidata</a></li></ul></div></div> </div> </main> </div> <div class="mw-footer-container"> <footer id="footer" class="mw-footer" > <ul id="footer-info"> <li id="footer-info-lastmod"> This page was last edited on 11 February 2025, at 00:11<span class="anonymous-show"> (UTC)</span>.</li> <li id="footer-info-copyright">Text is available under the <a href="/wiki/Wikipedia:Text_of_the_Creative_Commons_Attribution-ShareAlike_4.0_International_License" title="Wikipedia:Text of the Creative Commons Attribution-ShareAlike 4.0 International License">Creative Commons Attribution-ShareAlike 4.0 License</a>; additional terms may apply. By using this site, you agree to the <a href="https://foundation.wikimedia.org/wiki/Special:MyLanguage/Policy:Terms_of_Use" class="extiw" title="foundation:Special:MyLanguage/Policy:Terms of Use">Terms of Use</a> and <a href="https://foundation.wikimedia.org/wiki/Special:MyLanguage/Policy:Privacy_policy" class="extiw" title="foundation:Special:MyLanguage/Policy:Privacy policy">Privacy Policy</a>. Wikipedia® is a registered trademark of the <a rel="nofollow" class="external text" href="https://wikimediafoundation.org/">Wikimedia Foundation, Inc.</a>, a non-profit organization.</li> </ul> <ul id="footer-places"> <li id="footer-places-privacy"><a href="https://foundation.wikimedia.org/wiki/Special:MyLanguage/Policy:Privacy_policy">Privacy policy</a></li> <li id="footer-places-about"><a href="/wiki/Wikipedia:About">About Wikipedia</a></li> <li id="footer-places-disclaimers"><a href="/wiki/Wikipedia:General_disclaimer">Disclaimers</a></li> <li id="footer-places-contact"><a href="//en.wikipedia.org/wiki/Wikipedia:Contact_us">Contact Wikipedia</a></li> <li id="footer-places-wm-codeofconduct"><a href="https://foundation.wikimedia.org/wiki/Special:MyLanguage/Policy:Universal_Code_of_Conduct">Code of Conduct</a></li> <li id="footer-places-developers"><a href="https://developer.wikimedia.org">Developers</a></li> <li id="footer-places-statslink"><a href="https://stats.wikimedia.org/#/en.wikipedia.org">Statistics</a></li> <li id="footer-places-cookiestatement"><a href="https://foundation.wikimedia.org/wiki/Special:MyLanguage/Policy:Cookie_statement">Cookie statement</a></li> <li id="footer-places-mobileview"><a href="//en.m.wikipedia.org/w/index.php?title=Mixed_model&mobileaction=toggle_view_mobile" class="noprint stopMobileRedirectToggle">Mobile view</a></li> </ul> <ul id="footer-icons" class="noprint"> <li id="footer-copyrightico"><a href="https://wikimediafoundation.org/" class="cdx-button cdx-button--fake-button cdx-button--size-large cdx-button--fake-button--enabled"><img src="/static/images/footer/wikimedia-button.svg" width="84" height="29" alt="Wikimedia Foundation" lang="en" loading="lazy"></a></li> <li id="footer-poweredbyico"><a href="https://www.mediawiki.org/" class="cdx-button cdx-button--fake-button cdx-button--size-large cdx-button--fake-button--enabled"><img src="/w/resources/assets/poweredby_mediawiki.svg" alt="Powered by MediaWiki" width="88" height="31" loading="lazy"></a></li> </ul> </footer> </div> </div> </div> <div class="vector-header-container vector-sticky-header-container"> <div id="vector-sticky-header" class="vector-sticky-header"> <div class="vector-sticky-header-start"> <div class="vector-sticky-header-icon-start vector-button-flush-left vector-button-flush-right" aria-hidden="true"> <button class="cdx-button cdx-button--weight-quiet cdx-button--icon-only vector-sticky-header-search-toggle" tabindex="-1" data-event-name="ui.vector-sticky-search-form.icon"><span class="vector-icon mw-ui-icon-search mw-ui-icon-wikimedia-search"></span> <span>Search</span> </button> </div> <div role="search" class="vector-search-box-vue vector-search-box-show-thumbnail vector-search-box"> <div class="vector-typeahead-search-container"> <div class="cdx-typeahead-search cdx-typeahead-search--show-thumbnail"> <form action="/w/index.php" id="vector-sticky-search-form" class="cdx-search-input cdx-search-input--has-end-button"> <div class="cdx-search-input__input-wrapper" data-search-loc="header-moved"> <div class="cdx-text-input cdx-text-input--has-start-icon"> <input class="cdx-text-input__input" type="search" name="search" placeholder="Search Wikipedia"> <span class="cdx-text-input__icon cdx-text-input__start-icon"></span> </div> <input type="hidden" name="title" value="Special:Search"> </div> <button class="cdx-button cdx-search-input__end-button">Search</button> </form> </div> </div> </div> <div class="vector-sticky-header-context-bar"> <nav aria-label="Contents" class="vector-toc-landmark"> <div id="vector-sticky-header-toc" class="vector-dropdown mw-portlet mw-portlet-sticky-header-toc vector-sticky-header-toc vector-button-flush-left" > <input type="checkbox" id="vector-sticky-header-toc-checkbox" role="button" aria-haspopup="true" data-event-name="ui.dropdown-vector-sticky-header-toc" class="vector-dropdown-checkbox " aria-label="Toggle the table of contents" > <label id="vector-sticky-header-toc-label" for="vector-sticky-header-toc-checkbox" class="vector-dropdown-label cdx-button cdx-button--fake-button cdx-button--fake-button--enabled cdx-button--weight-quiet cdx-button--icon-only " aria-hidden="true" ><span class="vector-icon mw-ui-icon-listBullet mw-ui-icon-wikimedia-listBullet"></span> <span class="vector-dropdown-label-text">Toggle the table of contents</span> </label> <div class="vector-dropdown-content"> <div id="vector-sticky-header-toc-unpinned-container" class="vector-unpinned-container"> </div> </div> </div> </nav> <div class="vector-sticky-header-context-bar-primary" aria-hidden="true" ><span class="mw-page-title-main">Mixed model</span></div> </div> </div> <div class="vector-sticky-header-end" aria-hidden="true"> <div class="vector-sticky-header-icons"> <a href="#" class="cdx-button cdx-button--fake-button cdx-button--fake-button--enabled cdx-button--weight-quiet cdx-button--icon-only" id="ca-talk-sticky-header" tabindex="-1" data-event-name="talk-sticky-header"><span class="vector-icon mw-ui-icon-speechBubbles mw-ui-icon-wikimedia-speechBubbles"></span> <span></span> </a> <a href="#" class="cdx-button cdx-button--fake-button cdx-button--fake-button--enabled cdx-button--weight-quiet cdx-button--icon-only" id="ca-subject-sticky-header" tabindex="-1" data-event-name="subject-sticky-header"><span class="vector-icon mw-ui-icon-article mw-ui-icon-wikimedia-article"></span> <span></span> </a> <a href="#" class="cdx-button cdx-button--fake-button cdx-button--fake-button--enabled cdx-button--weight-quiet cdx-button--icon-only" id="ca-history-sticky-header" tabindex="-1" data-event-name="history-sticky-header"><span class="vector-icon mw-ui-icon-wikimedia-history mw-ui-icon-wikimedia-wikimedia-history"></span> <span></span> </a> <a href="#" class="cdx-button cdx-button--fake-button cdx-button--fake-button--enabled cdx-button--weight-quiet cdx-button--icon-only mw-watchlink" id="ca-watchstar-sticky-header" tabindex="-1" data-event-name="watch-sticky-header"><span class="vector-icon mw-ui-icon-wikimedia-star mw-ui-icon-wikimedia-wikimedia-star"></span> <span></span> </a> <a href="#" class="cdx-button cdx-button--fake-button cdx-button--fake-button--enabled cdx-button--weight-quiet cdx-button--icon-only" id="ca-edit-sticky-header" tabindex="-1" data-event-name="wikitext-edit-sticky-header"><span class="vector-icon mw-ui-icon-wikimedia-wikiText mw-ui-icon-wikimedia-wikimedia-wikiText"></span> <span></span> </a> <a href="#" class="cdx-button cdx-button--fake-button cdx-button--fake-button--enabled cdx-button--weight-quiet cdx-button--icon-only" id="ca-ve-edit-sticky-header" tabindex="-1" data-event-name="ve-edit-sticky-header"><span class="vector-icon mw-ui-icon-wikimedia-edit mw-ui-icon-wikimedia-wikimedia-edit"></span> <span></span> </a> <a href="#" class="cdx-button cdx-button--fake-button cdx-button--fake-button--enabled cdx-button--weight-quiet cdx-button--icon-only" id="ca-viewsource-sticky-header" tabindex="-1" data-event-name="ve-edit-protected-sticky-header"><span class="vector-icon mw-ui-icon-wikimedia-editLock mw-ui-icon-wikimedia-wikimedia-editLock"></span> <span></span> </a> </div> <div class="vector-sticky-header-buttons"> <button class="cdx-button cdx-button--weight-quiet mw-interlanguage-selector" id="p-lang-btn-sticky-header" tabindex="-1" data-event-name="ui.dropdown-p-lang-btn-sticky-header"><span class="vector-icon mw-ui-icon-wikimedia-language mw-ui-icon-wikimedia-wikimedia-language"></span> <span>8 languages</span> </button> <a href="#" class="cdx-button cdx-button--fake-button cdx-button--fake-button--enabled cdx-button--weight-quiet cdx-button--action-progressive" id="ca-addsection-sticky-header" tabindex="-1" data-event-name="addsection-sticky-header"><span class="vector-icon mw-ui-icon-speechBubbleAdd-progressive mw-ui-icon-wikimedia-speechBubbleAdd-progressive"></span> <span>Add topic</span> </a> </div> <div class="vector-sticky-header-icon-end"> <div class="vector-user-links"> </div> </div> </div> </div> </div> <div class="vector-settings" id="p-dock-bottom"> <ul></ul> </div><script>(RLQ=window.RLQ||[]).push(function(){mw.config.set({"wgHostname":"mw-web.codfw.main-68cdd48dd4-jn4z8","wgBackendResponseTime":139,"wgPageParseReport":{"limitreport":{"cputime":"0.425","walltime":"0.654","ppvisitednodes":{"value":2353,"limit":1000000},"postexpandincludesize":{"value":78034,"limit":2097152},"templateargumentsize":{"value":959,"limit":2097152},"expansiondepth":{"value":8,"limit":100},"expensivefunctioncount":{"value":3,"limit":500},"unstrip-depth":{"value":1,"limit":20},"unstrip-size":{"value":126723,"limit":5000000},"entityaccesscount":{"value":0,"limit":400},"timingprofile":["100.00% 466.794 1 -total"," 49.33% 230.261 1 Template:Reflist"," 25.72% 120.082 11 Template:Cite_book"," 18.66% 87.095 1 Template:Regression_bar"," 17.91% 83.584 1 Template:Sidebar"," 17.37% 81.063 17 Template:Cite_journal"," 15.34% 71.624 1 Template:Short_description"," 9.49% 44.300 2 Template:Pagetype"," 5.03% 23.495 1 Template:Distinguish"," 4.34% 20.257 11 Template:Mvar"]},"scribunto":{"limitreport-timeusage":{"value":"0.271","limit":"10.000"},"limitreport-memusage":{"value":6139947,"limit":52428800},"limitreport-logs":"table#1 {\n}\n"},"cachereport":{"origin":"mw-api-ext.eqiad.main-75fb65f6ff-7tcps","timestamp":"20250211001148","ttl":2592000,"transientcontent":false}}});});</script> <script type="application/ld+json">{"@context":"https:\/\/schema.org","@type":"Article","name":"Mixed model","url":"https:\/\/en.wikipedia.org\/wiki\/Mixed_model","sameAs":"http:\/\/www.wikidata.org\/entity\/Q1501135","mainEntity":"http:\/\/www.wikidata.org\/entity\/Q1501135","author":{"@type":"Organization","name":"Contributors to Wikimedia projects"},"publisher":{"@type":"Organization","name":"Wikimedia Foundation, Inc.","logo":{"@type":"ImageObject","url":"https:\/\/www.wikimedia.org\/static\/images\/wmf-hor-googpub.png"}},"datePublished":"2006-06-05T08:24:27Z","dateModified":"2025-02-11T00:11:45Z","headline":"statistical model containing both fixed effects and random effects"}</script> </body> </html>