The default regression argument of zepid.base.interaction_contrast_ratio differs from the description in the documentation. #174
Open
Description
if regression == 'logit':
It's strange that the default argument will cause warning,
if regression == 'logit':
f = sm.families.family.Binomial()
warnings.warn('Using the Odds Ratio to calculate the ICR is only valid when the OR approximates the RR',
UserWarning)
elif regression == 'log':
f = sm.families.family.Binomial(sm.families.links.log())
else:
raise ValueError("Either 'logit' or 'log' must be specified for the regression parameter")
Metadata
Assignees
Labels
No labels