what type of regression is this?

I have a code for a linear model that looks like this

intercept = `binary variable as string` + `other binary variable string`
lm(`dependent var` ~ 0 + (intercept + `independent var` + `other independent var`):(`binary variable `+ `other binary variable`),(data=data)

does anyone know the name for this type of regression? I am trying to do more reading on it but don't see anyone else using this sort of code online

the result is a model with an intercept for each binary category and separate coefficients for each category-independent var combination, but only one R squared value. when i compare the result to just doing separate lm models for each category of data, the coefficients are very similar but slightly different

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.