The Masterproject - Subproject functionality works so that you add subprojects to a masterproject
On the hierarchy tab there is a Parents subpage where you can add parents ie masterprojects in this case.
Child projects can be added on either Rollup subpage of the Hierarchy tab.
The subprojects and childprojects create the same database entries.