Nothing wrong. One sided alternatives are unfortunately still not supported in the models.
However a hypothesis like
"C(factor2)[T.True] > 0" wouldn't be clear
The null hypothesis needs to include the boundary point. That's where it will be evaluated.
What we want to show should be the alternative.
for example
H0: b <= 0
H1: b > 0
which is in this case equivalent to
Or flip inequality signs to show the opposite, i.e. reject if b < 0.
What you can do if your parameter estimate is on the appropriate side (*), is to double the two-sided pvalue.
(*) I don't remember right now whether the appropriate side is positive or negative
or you double alpha, and check whether the confidence interval does not include zero and is on the side that you want, i.e. positive.
Josef
Thanks,
Leander
--
You received this message because you are subscribed to the Google Groups "pystatsmodels" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pystatsmodel...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/pystatsmodels/97db9677-1fa6-422c-868a-9a046ca3b54dn%40googlegroups.com.