Closed MilaSMayor closed 3 weeks ago
Also, I think that with interaction for two predictors, I must have as well, two other effects, in this case, they would be P1P2rrr and P1P2sss.
Ahh yeah I see what's going on here. It unnecessarily makes the rrr2 and sss2. There are two components with the same period (one for each group) but it should be fitting the model with an interaction term between P1 and rrr1/sss1 rather than these new variables (rrr2 and sss2). Since rrr1 = rrr2 and sss1= sss2, the model becomes rank deficient and it drops those variables. I'll need to make some changes to the package to avoid this behaviour. I'll keep you updated.
In the meantime, you can use this attached model (I adjusted the formula before the model gets fit so that it has the interactions for both groups with rrr1/sss1). Could you please try this model and see if it is as you'd expect? milas-model.zip
I've made a separate issue (https://github.com/ropensci/GLMMcosinor/issues/29) which is a bit more explicit around the cause of the problem.
I'm closing this issue as it'll be addressed in #29 (eventually).
Dear GLMMcosinor developer,
First at all, I apoligise because I created this issue before, but I did not know that it was sent, my mistake. I just saw it when I got an email that you closed the issue and what you wrote.
Here is the issue with my specific problem.
I am trying to run a cosinor mixed effect model with your package.
The model I am trying to run is related with the interaction of two predictors. Both predictors are binary variables. The number of components is 2, otherwise I get the error:
Then, please, see below the example. In the example you will see that when trying to do the interaction I get always the problem that some effects are dropped. I need to say that I have been trying interactions since last week in different examples, and always I get the same.
So, I hope that this report is more explicit than the previous one. My question is related to the dropped effects. I do not think it is correct, but please, maybe I am wrong.
Best,
Mila