Re: [R] How to test frequency independence (in a 2 by 2 table) withmany missing values

2009-07-25 Thread Tal Galili
Hello Daniel, Thank you for the extended answer. You gave me one more reason to delve into mixed models in the future. I will be honest and say that I believe I will explore Roberts approach more due to the simplicity of it. But nevertheless, I am very grateful for your reply. With best regards,

Re: [R] How to test frequency independence (in a 2 by 2 table) withmany missing values

2009-07-24 Thread Daniel Malter
Hi Tal, you can use the lme4 library and use a random effects model. I will walk you through the example below (though, generally you should ask a statistician at your school about this). At the very end, I will include a loop for Monte-Carlo simulations that shows that the estimation of the

Re: [R] How to test frequency independence (in a 2 by 2 table) withmany missing values

2009-07-24 Thread Robert A LaBudde
Daniel's response about using a mixed model whopped me alongside the head, so now I'm thinking more clearly. Here are a few more comments: 1. The LRT based on ML or the resampling alternative is probably the most powerful among reasonable algorithms to do a test on your problem. You might

Re: [R] How to test frequency independence (in a 2 by 2 table) withmany missing values

2009-07-24 Thread Tal Galili
Hello dear Robert and Daniel, I read your replies with much interest, thank you very much for them! Dear Daniel, Your approach is, as Robert said, whopped me alongside the head as well. So much so that I fear it will be much more then my current level of understanding can take for the project I

Re: [R] How to test frequency independence (in a 2 by 2 table) withmany missing values

2009-07-24 Thread Daniel Malter
Hi Tal, it is necessary to understand the method, but not for all applied researchers it is necessary, I think, to understand all the specifics or underlying processes (I know others would disagree on that). As to my suggestion: The Monte-Carlo simulations have no other purpose than showing that