I know that GLM models are nested when one can obtain the smaller model by removing $\beta$'s from the larger model. However, when doing some exercises I found on the internet, I stumbled about doing a partial deviance test for the following two models:
Here, let covariate A be a continuous covariate and B be a factor covariate with 2 levels
Model 1: Intercept, A
Model 2: No Intercept, A, B coded as [0, 1] and [1, 0] for the two levels.
In the exercise, it has been claimed that Model 1 is nested within Model 2.
Here, obtaining Model 1 by setting parameters of Model 2 to zero is not really possible. However, Model 1 is kind of included when we take $\beta_{intercept} = \beta_{factor1} + \beta_{factor2}$. Does this then imply that the two models are nested? I always thought that the same covariates must be included in the model to have nested models.
Thank you in advance for your help and clarification! :)