The function obtains 1-df \(\chi^2\) statistics (observed) according
to a vector of p values, and the inflation factor (lambda) according
to medians of the observed and expected statistics. The latter is based
on the empirical distribution function (EDF) of 1-df \(\chi^2\) statstics.
It would be appropriate for genetic association analysis as of 1-df Armitage trend test
for case-control data; for 1-df additive model with continuous outcome one has to
consider the compatibility with p values based on z-/t- statistics.