Logistic regression with time components - Cross Validated most recent 30 from stats.stackexchange.com 2019-09-21T15:38:46Z https://stats.stackexchange.com/feeds/question/260880 https://creativecommons.org/licenses/by-sa/4.0/rdf https://stats.stackexchange.com/q/260880 3 Logistic regression with time components mnadsa https://stats.stackexchange.com/users/148561 2017-02-09T08:38:40Z 2017-02-17T13:08:56Z <p>Suppose I have $N=10$ participants. </p> <p>For each participant, I have $M=100$ consecutive answers, which are either correct or incorrect. My hypothesis is that the probability of giving a correct answers decreases with time. Can I analyze the data with logistic regression? I would like to do the analysis separately for each participant.</p> https://stats.stackexchange.com/questions/260880/-/262466#262466 1 Answer by Knarpie for Logistic regression with time components Knarpie https://stats.stackexchange.com/users/98942 2017-02-17T10:09:31Z 2017-02-17T13:08:56Z <p>Sure you can. The model then looks like</p> <p>$$logit(P(trueAnswer)) = \beta_0 + \beta_1 * time$$</p> <p>with $logit(x)=log(\frac{x}{1-x})$</p> <p>I would still do a two-sided test for $\beta_1$(since you never know performance may improve over time). If it is negative and significant you have proven your point. If you have not recorded the exact times I think it is still ok to use time = 1,..., M in this case.</p> <p>It is fine to do the analysis separately per participant since M is large enough, though you may gain power by using a glmm with a random effect for participant. </p>