goftest function

Assessing goodness of fit of inference using simulation