# Adding 2nd level variable into Multi-level Modelling in Stata

I'm used to HLM 7 software and now I'd like to switch to Stata, for multilevel modelling (xtmixed).

To give an example imagine I have students(level1) nested within schools (level2). In HLM I can easily add a second level variable (for instance schools beauty) choosing the equation of a coefficient (or intercept) which is at level 2.

Imagine I want to include the effect of school beauty in B0 (intercept). How can I do that in Stata?

I found the solution here:

http://www.iub.edu/~statmath/stat/all/hlm/hlm.pdf

So, adding a second level variable to the model, like the school sector (Sector), can be easily done via the xtmixed command. For instance:
xtmixed MatGrade Intelligence Sector || SchoolId: