The classical problem of testing goodness-of-fit of a parametric family is reconsidered. A new test for this problem is proposed and investigated. The new test statistic is a combination of the smooth test statistic and Schwarz's selection rule. More precisely, as the sample size increases, an increasing family of exponential models describing departures from the null model is introduced and Schwarz's selection rule is presented to select among them. Schwarz's rule provides the "right" dimension given by the data, while the smooth test in the "right" dimension finishes the job. Theoretical properties of the selection rules are derived under null and alternative hypotheses. They imply consistency of data driven smooth tests for composite hypotheses at essentially any alternative.
"Data driven smooth tests for composite hypotheses." Ann. Statist. 25 (3) 1222 - 1250, June 1997. https://doi.org/10.1214/aos/1069362746