We are working on a panel primary survey socioeconomic data. We are trying to compare semiparametric models (semipar) and locpoly models using LR test to check which model is better. But unfortunately we are not successful because we get an error saying that number of observations differ in both the tests. I tried to impose the condition to use the same set of observations in both the models but still same error persists. When I checked the log file I found that the number of observations used in semipar is around 13k whereas the estimates in locpoly are showing only 3k observations. Unable to understand and solve this issue.

Request somebody to help