# \[Feature\] pass through fields to regression methods

**URL:** <https://discuss.hail.is/t/feature-pass-through-fields-to-regression-methods/725>\
**Category:** Updates\
**Created:** [October 26, 2018, 1:32am UTC](https://discuss.hail.is/t/feature-pass-through-fields-to-regression-methods/725 "2018-10-26T01:32:46Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![tpoterba](https://yyz2.discourse-cdn.com/flex036/user_avatar/discuss.hail.is/tpoterba/32/61_2.png) [@tpoterba](https://discuss.hail.is/u/tpoterba)\
**Post date:** [October 26, 2018, 1:32am UTC](https://discuss.hail.is/t/feature-pass-through-fields-to-regression-methods/725/1 "2018-10-26T01:32:46Z")

</div>

We’ve added a new feature to the following methods:

- [linear\_regression\_rows](https://hail.is/docs/0.2/methods/stats.html#hail.methods.linear_regression_rows)
- [logistic\_regression\_rows](https://hail.is/docs/0.2/methods/stats.html#hail.methods.logistic_regression_rows)
- [poisson\_regression\_rows](https://hail.is/docs/0.2/methods/stats.html#hail.methods.poisson_regression_rows)
- [linear\_mixed\_regression\_rows](https://hail.is/docs/0.2/methods/stats.html#hail.methods.linear_mixed_regression_rows)

These methods now all have a new argument, `pass_through`. This is a way to specify additional row fields in the matrix table to be added (“passed through”) to the resulting table (by default, only the key fields are passed through).

For example, you can include the rsid field with:

```python
result = hl.linear_regression_rows(
    y=mt.phenotype,
    x=mt.GT.n_alt_alleles(),
    covariates=[1, mt.cov1, mt.cov2],
    pass_through=(mt.rsid))

```
