# Ds.glm(family="quasipoisson") ci.mat error

**URL:** <https://datashield.discourse.group/t/ds-glm-family-quasipoisson-ci-mat-error/389>\
**Category:** Beginner Support\
**Created:** [21 April 2021 11:39 UTC](https://datashield.discourse.group/t/ds-glm-family-quasipoisson-ci-mat-error/389 "2021-04-21T11:39:54Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![asm](https://avatars.discourse-cdn.com/v4/letter/a/278dde/32.png) [@asm](https://datashield.discourse.group/u/asm)\
**Post date:** [21 April 2021 11:39 UTC](https://datashield.discourse.group/t/ds-glm-family-quasipoisson-ci-mat-error/389/1 "2021-04-21T11:39:54Z")

</div>

Hi,

I’m trying to run a `ds.glm()` and it works fine when `family=binomial` but when I try to use `family="quasipoisson"` I get an error:

```
Error in cbind(model.parameters, ci.mat) : object 'ci.mat' not found

```

Looking at the source code of `ds.glm()`, I’m not sure if quasipoisson is actually available:

- [dsBaseClient/ds.glm.R at master · datashield/dsBaseClient · GitHub](https://github.com/datashield/dsBaseClient/blob/master/R/ds.glm.R)

Lines 694-738 seem to refer to gaussian, binomial and poisson, and 740-749 everything else.

NB, I’m running version 6.1.0 because our nodes are not updated - when I upgraded (locally) to 6.1.1 it broke (at least) one of the functions!

Cheers,

Andrei

---

<div class="post-metadata">

**Author:** ![demetris.avraam](https://avatars.discourse-cdn.com/v4/letter/d/439d5e/32.png) [@demetris.avraam](https://datashield.discourse.group/u/demetris.avraam)\
**Post date:** [21 April 2021 12:35 UTC](https://datashield.discourse.group/t/ds-glm-family-quasipoisson-ci-mat-error/389/2 "2021-04-21T12:35:48Z")

</div>

Hi Andrei,

Yes, you are right. The ds.glm function allows only gaussian, binomial and poisson distributions. The ds.glmSLMA in additional to those 3, it allows also gamma, quasipoisson and quasibinomial distributions.

We plan to include more distributions in the ds.glm in one of the next releases.

---

<div class="post-metadata">

**Author:** ![asm](https://avatars.discourse-cdn.com/v4/letter/a/278dde/32.png) [@asm](https://datashield.discourse.group/u/asm)\
**Post date:** [21 April 2021 20:35 UTC](https://datashield.discourse.group/t/ds-glm-family-quasipoisson-ci-mat-error/389/3 "2021-04-21T20:35:46Z")

</div>

Thanks Demetris. I’ll look at ds.glmSLMA (I see there are some very comprehensive notes to accompany it which is great!).
