I have a data set, total_data and I applied a model to it. For instance, the model has one parameter $\beta$, and I calculated the log-likelihood of the fitted model (using maximum likelihood method). In the mean time, I have a stratification variable that could divide total_data into two subsets: high_risk_data and low_risk_data. Now, I could apply the same model to each subset, obtaining $\beta_1$ and $\beta_2$. I could sum up the log-likelihood from each fitting and obtain some kind of overall log-likelihood for the total_data under model 2.
Model 1: parameter $\beta$ fitted on total_data;
Model 2: parameters $\beta_1$ and $\beta_2$ fitted on each subset of data.
Can I consider them as nested models, since I have one fewer parameter in model 1? Can I apply the likelihood ratio test to select a better model?
I know a more standard way to obtain something similar to model2: introduce a second stratification variable-group and apply the model ($\beta$,$\beta_{group}$) to the total_data. The likelihood ratio test would be to test against H0:$\beta_{group}=0$. Is this the same as the method I described above?