nbkd.sf {DESeq} | R Documentation

## GLM family for a negative binomial with known dispersion and log link with size factors

### Description

A distribution family for use with `glm`. It describes a negative binomial (as `negative.binomial` in the MASS package), but with a special link function, namely eta[i] = log( mu[i] / sf[i] ), i.e., each count value is divided by its size factor before the log is taken. This is used internally by `fitNbinomGLMs`.

### Usage

    nbkd.sf(r, sf)

### Arguments

`r` | The 'size' argument (see `dnbinom`), i.e., the reciprocal of the dispersion.
`sf` | A vector of size factors.

### Value

A GLM family object.

### Author(s)

Simon Anders, anders@embl.de

[Package DESeq version 1.38.0 Index]