Hi,
I am working with a set of panel data where I am looking at students' school results in different counties. I am doing comparisons between different counties and therefor collapsing the observations to one value for each municipality. Since the data is only for public schools (and not private) am I trying to mitigating the problem by giving more weight to counties that have a relatively larger share of students going in to public schools, compared to counties where its more common for students going to private schools. For example, a municipality with only public schools will have a larger influence in the regression compared to a municipality where this figure is 10 %.I am using xtreg command and applying both fixed effects and random effects. I dont know exactly how I could solve the problem, my first idea was to use aweights but I understand that the coefficients are not being adjusted, only the standard errors. Does anyone know how I can solve this using weights or some other approach?