perHtypeIerror_marginalpowerfunc function

perHtypeIerror_powerfunc