Varies case by case
A sleep-lab overnight study gathers lots of information, but is very expensive, and tests the patient outside of his normal routine.
The home sleep study
collects basic information, but is much cheaper, so can be done on many more people, plus it tests patients in their own beds. The decision is made case by case, but sometimes the cheaper study is done first, to see if it alone gives enough info.