{"id":2936,"date":"2013-01-15T06:07:03","date_gmt":"2013-01-15T11:07:03","guid":{"rendered":"http:\/\/www.thejuliagroup.com\/blog\/?p=2936"},"modified":"2013-01-15T06:07:03","modified_gmt":"2013-01-15T11:07:03","slug":"mixed-models-and-other-new-stuff","status":"publish","type":"post","link":"https:\/\/www.thejuliagroup.com\/blog\/mixed-models-and-other-new-stuff\/","title":{"rendered":"Mixed Models and other new stuff"},"content":{"rendered":"<blockquote><p>&#8220;I&#8217;m XX years old and I&#8217;ve never used (insert any statistical technique here). Why do I need to know this?&#8221;<\/p><\/blockquote>\n<p>I&#8217;ve heard some version of the above on every topic from linear regression to structural equation models, and at every age from teenagers to executives in their sixties. I&#8217;ve even made comments like that myself. All of those people, especially me, were wrong. Not in the &#8220;I&#8217;ve never used this&#8221;. I believe that. It is the implication that you wouldn&#8217;t use it if you knew it. I&#8217;ve never used my non-existent knowledge of Chinese and I got by when I was in Hongkong and Beijing and with the various Chinese people I have met, but if I had known Chinese I am sure I would have used it and probably learned a lot more interesting things about the places I went and people I met.<\/p>\n<p>The same is true of statistics. Wednesday, I&#8217;m going to San Diego to a workshop for professors on mixed models using SAS. Now, I have used mixed models in the past and <a href=\"http:\/\/www.thejuliagroup.com\/presentations\/\">even gave a presentation it you can find on the presentations page on this site<\/a>.Still, it&#8217;s probably been over a year since I did a mixed model. Survival analysis, plain vanilla ANOVA and regression and some flat out descriptive studies have been the order of the day, not to mention a lot of javascript.<\/p>\n<p>Now that I&#8217;m going to San Diego, I&#8217;m seeing mixed models everywhere. For example, I am planning a study where we present students with instructional choices for a topic, say frequency distributions. The choices could be a web page, video, applet that lets you create distributions. Choices would vary in difficulty and quality (as rated in advance by me &amp; some other people). My dependent variable in this case would be how much time the student spends reading, watching or playing with this resource. Student is going to be a repeated random effect here. Difficulty is a fixed effect, as is quality.<\/p>\n<p>So &#8230; that is a mixed model.<\/p>\n<p>I&#8217;m also looking at improvement in students who play our math game we&#8217;ve developed. There is a pretest and posttest, so that is the repeated factor. There is the group &#8211; intervention or comparison &#8211; so that&#8217;s a fixed factor. Other variables I could include are grade (fixed) or teacher (random). What if I included, though, how involved their teacher was with the students using the game, either (high- providing hints, made up a cheat sheet, taught the same material in class if she noticed students were having difficulty) , low (sat and read the newspaper) or moderate? Anyway you look at it, this could be a mixed model.<\/p>\n<p>Then I got to thinking of something else where \u00a0I could have the type of instructional resource a student chose as a dependent variable, say a video, web page or some active option like a game or applet. Then I would do a multinomial logistic regression and have things like difficulty and quality as variables. However, the same student would be making lots of choices. Instead of 6,000 independent records, I might have 100 students each making an average of 60 choices during the game. In this case, I could use the generalized estimating equations (GEE) method to control for correlated observations. I definitely would not use PROC MIXED.<\/p>\n<p>My point is that once I started thinking about mixed models, I started seeing where I could and couldn&#8217;t use them. Not only did this get me thinking about mixed models it also started me looking at other ways to work with repeated and random effects. I think the same would be true of almost any statistical technique.<\/p>\n<p>Speaking of going to class &#8230; I try to do that whenever I can. I&#8217;ve been so swamped writing two grant proposals that it&#8217;s been impossible to get away for very long. So much so, that when the Joint Mathematical Meetings were in San Diego last week, I skipped the conference and just took a class.<\/p>\n<p>A couple of years ago, I was at the <a href=\"http:\/\/www.wuss.org\">Western Users of SAS Software conference<\/a> and went to a class on survival analysis given by Gerry Hobbs. It was very good. A much younger colleague saw me and asked why I would be going to a class. He said,<\/p>\n<blockquote><p>&#8220;I&#8217;ve heard you give talks on survival analysis. Why would you go to a class by someone else?&#8221;<\/p><\/blockquote>\n<p>I thought the answer was obvious,<\/p>\n<blockquote><p>&#8220;Because I&#8217;m sure he knows some things I don&#8217;t, either details about the technique, about programming or about how to present it . And I want to learn.&#8221;<\/p><\/blockquote>\n<p>It reminded me years ago of when I was an assistant professor at Minot State University. I happened to be taking a class in microbiology because my friend, Nina Parker, was teaching it and I heard she was a great professor (she was). Another professor, in the chemistry department, was taking a French course at the same time. We both got the same startled reactions from other students. He said to me,<\/p>\n<blockquote><p>&#8220;One of them actually asked me, &#8216;You have a PhD, why are you taking an introductory French class?&#8217; and I told her, To learn French!&#8221;<\/p><\/blockquote>\n<p>Learn new stuff. It&#8217;s not a strange concept. Really.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>&#8220;I&#8217;m XX years old and I&#8217;ve never used (insert any statistical technique here). Why do I need to know this?&#8221; I&#8217;ve heard some version of the above on every topic from linear regression to structural equation models, and at every age from teenagers to executives in their sixties. I&#8217;ve even made comments like that myself&#8230;.<\/p>\n","protected":false},"author":5,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_kad_post_transparent":"","_kad_post_title":"","_kad_post_layout":"","_kad_post_sidebar_id":"","_kad_post_content_style":"","_kad_post_vertical_padding":"","_kad_post_feature":"","_kad_post_feature_position":"","_kad_post_header":false,"_kad_post_footer":false,"_kad_post_classname":"","_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[1,11],"tags":[],"class_list":["post-2936","post","type-post","status-publish","format-standard","hentry","category-dr-de-mars-general-life-ramblings","category-statistics"],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/www.thejuliagroup.com\/blog\/wp-json\/wp\/v2\/posts\/2936","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.thejuliagroup.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.thejuliagroup.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.thejuliagroup.com\/blog\/wp-json\/wp\/v2\/users\/5"}],"replies":[{"embeddable":true,"href":"https:\/\/www.thejuliagroup.com\/blog\/wp-json\/wp\/v2\/comments?post=2936"}],"version-history":[{"count":1,"href":"https:\/\/www.thejuliagroup.com\/blog\/wp-json\/wp\/v2\/posts\/2936\/revisions"}],"predecessor-version":[{"id":2937,"href":"https:\/\/www.thejuliagroup.com\/blog\/wp-json\/wp\/v2\/posts\/2936\/revisions\/2937"}],"wp:attachment":[{"href":"https:\/\/www.thejuliagroup.com\/blog\/wp-json\/wp\/v2\/media?parent=2936"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.thejuliagroup.com\/blog\/wp-json\/wp\/v2\/categories?post=2936"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.thejuliagroup.com\/blog\/wp-json\/wp\/v2\/tags?post=2936"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}