Missingness at random is not testable from the observed data: any
value of E[Y | R = 0] is equally consistent with what was seen.
A pattern-mixture sensitivity analysis parameterises the departure
instead of assuming it away,
E[Y | R = 0] = E[Y | R = 1] + delta, so the marginal mean traced
over the grid is
E[Y](delta) = E[Y|R=1] + (1 - P(R=1)) delta.
Value
List with estimate (mean at delta = 0), means, delta_grid, mar_mean, p_observed, tipping_delta, n_observed, n.
Details
delta = 0 is the MAR answer, recovered exactly. The mean is
linear in delta with slope equal to the missingness rate: the analysis
is fragile only in proportion to how much data is absent, and with
nothing missing no delta can move it.
The TIPPING POINT is the delta at which the mean crosses
reference, delta* = (reference - E[Y|R=1]) / P(R=0), so
the conclusion can be stated as "the missing units would have to
differ by delta* for this to reverse". With nothing missing there is
no such delta and the field is NaN, not infinity: the
conclusion cannot be tipped at all.
