Fixed a bug during prevalence computation when a value used as a group (like sex) contains NA and at the same time all values in that group are NA as well. Previously this resulted in a hard stop of the computation, now the code gracefully handles it.
This is inline with how {survey} deals with NAs in group values.
Fixed a bug during prevalence computation when a value used as a group (like sex) contains
NA
and at the same time all values in that group areNA
as well. Previously this resulted in a hard stop of the computation, now the code gracefully handles it.This is inline with how {survey} deals with
NA
s in group values.