Following up on @Reeza 's comment - If I understand correctly you have two dummy variables - event1 and event2.. Event1 is 1 if it is 2020Q1, and 0 for all other quarters, while event2 is 1 if it is 2020Q2 and 0 for all other quarters. Is that how the dummy variables are coded? This is probably more critical to working out the effect of a level shift due to something changing from Q1 to Q2 in 2020. I would code these somewhat differently - event1 is 1 for all quarters up to and including 2020Q1 and 0 for all quarters after that, and event2 is 0 for all quarters up to and including 2020Q1 and 1 for the single quarter after that. If it is coded any way besides these two, then there will be missing values for the other quarters and the design matrix will not be full rank. PANEL interprets this as multicollinearity, but it actually is misspecification of the model.
Now if the coding is as the first, and you treat event1 and event2 as continuous covariates (your first code), all will work out as the design matrix is still full rank. However, once you move these two variables to class variables, the two columns in the design matrix will be a linear combination of one another, and you are now not full rank. If you code in the second manner, I suspect the same will happen. Here is where @PaigeMiller 's suggestion of the OUTTRANS= option will come in handy to check what is going on. Additionally, use the CORR or COV option in the MODEL statement to see if there a columns/rows that are all zero--these are the culprits in the non-full rank/multicollinearity error.
So what to do with non-full rank designs? Use methods that do not require full rank matrices and actually use reduced rank matrices. I offer again PROC GLIMMIX. Or reconsider how to code the event. It is possible to use a single variable to code what you have, rather than two. That would solve the non-full rank issue. I suggest coding all of the quarters up to and including 2020Q1 as 0, and 2020Q2 as 1. Call this variable level_event, and use it as a CLASS variable.
SteveDenham
... View more