emend(object, ...)emend is generic,
and has methods for several classes of statistical models
in the spatstat package (mostly point process models).
Its purpose is to check whether a given model is valid
(for example, that none of the model parameters are NA)
and, if not, to find the nearest model which is valid.See the methods for more information.
emend.ppm,
emend.lppm,
valid.