linearmodels.iv.absorbing.Interaction.drop

Interaction.drop(locs: ndarray[tuple[int, ...], dtype[bool]]) → None[source]

Drop observations.

Parameters:
locs: ndarray[tuple[int, ...], dtype[bool]]

Boolean array with one element for each observation, which is True for the observations to drop.

Notes

The instance is modified in place and nothing is returned. Afterwards nobs, cat, cont, sparse and hash use only the remaining observations.