# How to obtain the pvalues of the coefficients in GLM.jl?

**URL:** <https://discourse.julialang.org/t/how-to-obtain-the-pvalues-of-the-coefficients-in-glm-jl/9531>\
**Category:** Statistics\
**Tags:** glm\
**Created:** [March 6, 2018, 10:08am UTC](https://discourse.julialang.org/t/how-to-obtain-the-pvalues-of-the-coefficients-in-glm-jl/9531 "2018-03-06T10:08:01Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![lukaebby](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/lukaebby/32/4055_2.png) [@lukaebby](https://discourse.julialang.org/u/lukaebby)\
**Post date:** [May 1, 2018, 8:50am UTC](https://discourse.julialang.org/t/how-to-obtain-the-pvalues-of-the-coefficients-in-glm-jl/9531/4 "2018-05-01T08:50:14Z")

</div>

Well, I understand that if you the following command

```julia
coeftable(mdl).cols[4]

```

you will have limited option to use those as they are in StatsBase.  
If you try this (may not be very efficient), it works better

```julia
a = coeftable(model).cols[4]
pVals = [a[i].v for i in 1:length(a) ]

```

Hope it helps  
Ebby

---

_[View the full topic](https://discourse.julialang.org/t/how-to-obtain-the-pvalues-of-the-coefficients-in-glm-jl/9531)._
