# Put start values for glm estimation

**URL:** https://discourse.julialang.org/t/put-start-values-for-glm-estimation/22444
**Category:** New to Julia
**Tags:** glm
**Created:** [March 28, 2019, 8:48am UTC](https://discourse.julialang.org/t/put-start-values-for-glm-estimation/22444 "2019-03-28T08:48:18Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![BMval](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/bmval/32/7647_2.png) [@BMval](https://discourse.julialang.org/u/BMval)
#### Post date: [March 28, 2019, 8:48am UTC](https://discourse.julialang.org/t/put-start-values-for-glm-estimation/22444/1 "2019-03-28T08:48:18Z")

</div>

Would you help, how to initialize start value for glm estimation?  
thank you.

---

<div class="post-metadata">

### Author: ![pdeffebach](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/pdeffebach/32/10320_2.png) [@pdeffebach](https://discourse.julialang.org/u/pdeffebach)
#### Post date: [March 28, 2019, 12:25pm UTC](https://discourse.julialang.org/t/put-start-values-for-glm-estimation/22444/2 "2019-03-28T12:25:32Z")

</div>

Fo you mean initial values to help with convergence of the betas?

I don’t think that feature is available.

---

<div class="post-metadata">

### Author: ![BMval](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/bmval/32/7647_2.png) [@BMval](https://discourse.julialang.org/u/BMval)
#### Post date: [March 28, 2019, 12:34pm UTC](https://discourse.julialang.org/t/put-start-values-for-glm-estimation/22444/3 "2019-03-28T12:34:41Z")

</div>

There is information in the documentation. I have a little experience on how to use it.

```julia
fit(GeneralizedLinearModel, X, y, d, [l = canonicallink(d)]; <keyword arguments>)
Keyword Arguments
...........
start::AbstractVector=nothing: Starting values for beta. Should have the Should have the
same length as the number of columns in the model matrix.

```

---

<div class="post-metadata">

### Author: ![pdeffebach](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/pdeffebach/32/10320_2.png) [@pdeffebach](https://discourse.julialang.org/u/pdeffebach)
#### Post date: [March 28, 2019, 2:26pm UTC](https://discourse.julialang.org/t/put-start-values-for-glm-estimation/22444/4 "2019-03-28T14:26:57Z")

</div>

You are right. I’m getting an error when I try it. You should explore that on your own and file an issue if you get a persistent error.

---

<div class="post-metadata">

### Author: ![pdeffebach](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/pdeffebach/32/10320_2.png) [@pdeffebach](https://discourse.julialang.org/u/pdeffebach)
#### Post date: [March 28, 2019, 2:47pm UTC](https://discourse.julialang.org/t/put-start-values-for-glm-estimation/22444/5 "2019-03-28T14:47:36Z")

</div>

Filed an issue [here](https://github.com/JuliaStats/GLM.jl/issues/297)
