expyfun.analyze.logit#
- expyfun.analyze.logit(prop, max_events=None)[source]#
Convert proportion (expressed in the range [0, 1]) to logit.
- Parameters:
- propfloat | array-like
the occurrence proportion.
- max_eventsint | array-like | None
the number of events used to calculate
prop. Used in a correction factor for cases whenpropis 0 or 1, to prevent returninginf. IfNone, no correction is done, andinfor-infmay result.
- Returns:
- lgt
numpy.ndarray, with shape matchingnumpy.array(prop).shape.
- lgt
See also