# ERROR: type CoefTable has no field mat

**URL:** <https://discourse.julialang.org/t/error-type-coeftable-has-no-field-mat/688>\
**Category:** Statistics\
**Tags:** question\
**Created:** [December 2, 2016, 4:15am UTC](https://discourse.julialang.org/t/error-type-coeftable-has-no-field-mat/688 "2016-12-02T04:15:26Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Harish\_Kumar](https://avatars.discourse-cdn.com/v4/letter/h/4bbf92/32.png) [@Harish\_Kumar](https://discourse.julialang.org/u/Harish_Kumar)\
**Post date:** [December 2, 2016, 4:15am UTC](https://discourse.julialang.org/t/error-type-coeftable-has-no-field-mat/688/1 "2016-12-02T04:15:26Z")

</div>

After getting estimate for lmm, I am using coeftable to covert in to DF. But in 0.5 Julia i am getting below error  
ERROR: type CoefTable has no field mat. Is it due to any library mismatch?

LMM output…  
Fixed-effects parameters:  
Estimate Std.Error z value P(\>|z|)  
(Intercept) 1.21003e-9 0.0155208 7.79618e-8 1.0000  
v1 -2.2536 0.949351 -2.37383 0.0176  
v2 -0.896036 0.207231 -4.32385 \<1e-4  
…

Code  
lmeModel = fit!(lmm(formula, inputdf))  
df = DataFrame(estimate = coeftable(lmeModel).mat[:,1])

---

<div class="post-metadata">

**Author:** ![nalimilan](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/nalimilan/32/147_2.png) [@nalimilan](https://discourse.julialang.org/u/nalimilan)\
**Post date:** [December 2, 2016, 2:05pm UTC](https://discourse.julialang.org/t/error-type-coeftable-has-no-field-mat/688/2 "2016-12-02T14:05:57Z")

</div>

`CoefTable` objects no longer have a `mat` field. You can see that by calling `dump(tab)` (with `tab` the coefficient table). Use `tab.cols[1]` instead.

EDIT: Though I’m not sure storing coefficients in a data frame is a good idea. This could make sense in R, but in Julia data frames are supposed to be used for database-like data mostly.
