You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When there is a model with multiple components with the same period (i.e in the main formula), there are multiple rrr/sss variables created and when the model is fit, it is rank deficient.
Both of these should work but neither do. They work if you change the period of one of the components to be 23 but this shouldn't be necessary.
They can also be fixed by changing the formula (start of data_processor()) to use main_rrr1 and main_sss1 for both interaction terms rather instead of having one of the groups interact with a main_[rrr/sss]2.
The text was updated successfully, but these errors were encountered:
Many thanks Rex. But I continue missing something. If I want to run this model: Y = P1*P2 + (1|new_id)
Applying cosinor mixed model, I would expect all the terms in the formula as you can see below. Y ~ P1 + P2 + P1*P2 + P1*rrr + P1*sss + P2*rrr + P2*sss + P1*P2*rrr + P1*P2*sss + (1|new_id)
As well, both P1 and P2 are factors. Many thanks again.
This should give you all the combinations that you want but the parameters of the model are a bit more annoying to interpret than if they were done as an interaction. You should be able to do this manually using the results for the different groupings in summary (summary(m)).
Motivated by @MilaSMayor #27
When there is a model with multiple components with the same period (i.e in the main formula), there are multiple rrr/sss variables created and when the model is fit, it is rank deficient.
reprex:
Both of these should work but neither do. They work if you change the period of one of the components to be 23 but this shouldn't be necessary.
They can also be fixed by changing the formula (start of
data_processor()
) to use main_rrr1 and main_sss1 for both interaction terms rather instead of having one of the groups interact with a main_[rrr/sss]2.The text was updated successfully, but these errors were encountered: