1
$\begingroup$

As mentioned in the title. I came across this instance using GLM in R. Is this an error?

EDIT: The p-value of the coefficient was calculated by GLM in R and is less than 0.05.

I then plotted the odds ratios (OR's generated using tidy exponentiation method) and generated the confidence intervals by multiplying the std. error * 1.96 (+/-). When I plot it, the CI includes 1. My understanding is that a CI that includes 1 is not significant for logisitic regression. My confusion is how the coefficient is significant before exponentiating, but the odds ratio includes 1 and is thus not significant. I hope this edits helps, please let me know if I can provide more information. Thanks for your help! @whuber @Schortchi

$\endgroup$
10
  • 2
    $\begingroup$ Please explain what the title means: how exactly did you make the two determinations of statistical significance? $\endgroup$
    – whuber
    May 6, 2022 at 21:48
  • 1
    $\begingroup$ The coefficient has a p-value of less than 0.05 but after converting it to an odds ratio, the 95% confidence error includes 1. $\endgroup$
    – haaris
    May 6, 2022 at 22:09
  • 1
    $\begingroup$ Could be this one: stats.stackexchange.com/q/5304/17230. If you don't find a post on your exact issue, you'll need to edit your question to explain just how you're calculating the p-values & confidence intervals. $\endgroup$ May 7, 2022 at 10:27
  • 1
    $\begingroup$ The answer is really very simple: your second procedure is invalid. Use the first. $\endgroup$
    – whuber
    May 9, 2022 at 19:34
  • 1
    $\begingroup$ @haaris This happens because you are using Wald CIs which depend on the scale chosen for the parameter (i.e. the parametrization) $\endgroup$
    – user277126
    May 9, 2022 at 19:34

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.