To provide context with the data, I have several variables $X_1, X_2, \cdots, X_K$ that represent $K$ individuals. When using all of these variables in a multiple regression (with ridge restriction) I get many IVs with coefficient equal to zero, but I wouldn't want that. So, the solution to resolve this was aggregating the data into known $m$ categories for the subjects. So, my disaggregated data would look like something like this:
$$\begin{array}{c|c|c|} & \text{Subject} & \text{Category} & \text{Value} \\ \hline \text{Row 1} & U_1 & C_1 & x_{1,1,1}\\ \hline \text{Row 2} & U_1 & C_1 & x_{1,1,2}\\ \hline \cdots & \cdots & \cdots & \cdots\\ \hline \text{Row n} & U_1 & C_1 & x_{1,1,n}\\ \hline \text{Row 1} & U_2 & C_1 & x_{1,2,1}\\ \hline \text{Row 2} & U_2 & C_1 & x_{1,2,2}\\ \hline \cdots & \cdots & \cdots & \cdots\\ \hline \text{Row n} & U_2 & C_1 & x_{1,2,n}\\ \hline \cdots & \cdots & \cdots & \cdots\\ \hline \text{Row 1} & U_K & C_m & x_{m,K,1}\\ \hline \text{Row 2} & U_K & C_m & x_{m,K,2}\\ \hline \cdots & \cdots & \cdots & \cdots\\ \hline \text{Row n} & U_K & C_m & x_{m,K,n}\\ \hline \end{array}$$
So instead of using $X_1,X_2,\dots,X_K$ I aggregated the data as follows
$$\begin{matrix} X'_1 = \sum_{U_p\in C_1}X_p & X'_2 = \sum_{U_p\in C_2}X_p & \cdots & X'_m = \sum_{U_p\in C_m}X_p \end{matrix}$$
And the adjust the next linear regression.
$$ \begin{equation} y_t = \beta'_0 + \sum_{i=1}^{m} \beta'_iT_i(X'_{i,t}) + \epsilon_t \end{equation} $$
The results give me a good insight of the aggregated variables but I still want to know a coefficient for each Individual. Thus, I took a new dependent variable made up from the multiplication of the beta associated with the aggregated category and the transformed $X'_i$; the independent variables now is built with the disaggregated data from the correspondent category. All of this expressed in the next equation for each category $C_i$
$$ \begin{equation} \beta'_iT_{i}(X_{i,t}; \vartheta_{i}) = \delta_{i,0} + \sum_{j=1}^{m_i}\beta_{i,j}T_{i,j}(X_{i,j,t}) + \varepsilon_{i,t} \end{equation} $$
So, at the end I have one "parent" multiple regression and $m$ "children" multiple regression models.
My question is if this methodology is valid from a statistical point of view, I'm afraid about the independence of error. In general I'm having problems with interpreting how the errors would work in this model, I understand that there wouldn't be much trouble with those giving that I'm only adding them up, but still I am not quite sure if the aggregation-disaggregation process is valid statistically.