Your panelboard will have overcurrent devices and therefore cannot be installed in locations exposed to physical damage, or in clothes closets, if residential cannot be in bathrooms. (220.24(C) & (D) & (E)
If the box contains a service disconnect & the installation is other than residential, can't be in a bathroom.230.70(A)(2)
Also, take into account working space requirements in110.34
Tom