
Lakesidefantasy |

While it is true that the CR of an NPC class is their level -2, it gets complicated when you add levels to a monster with racial hit dice. It is something like +1 CR for each level that is complimentary to a monster's powers and +1/2 CR for each level that isn't.
See Monster Advancement/Adding Class Levels/Step 3. However, NPC classes are not represented on the Monsters With Class Levels table. In that case maybe you just consider the NPC class as the class it most closely emulates.