model.nb2.v: Modeling NB2 Regression Model with Maximum Likelihood (ML) on...

Description Usage Arguments Details Value Author(s) References

View source: R/model.nb2.v.R

Description

This function is designed to fit an NB2 regression model. The output of this function will be passed to the main GOF function nb.gof.v.

Usage

1
model.nb2.v(y, x, lib.sizes=NULL)

Arguments

y

an n-by-1 vector of non-negative integers. For a typical RNA-Seq experiment, this may represent the read counts for a single gene across n samples.

x

an n-by-p design matrix. If an intercept is desired in the model, you need to specify the first column of x as a vector of 1.

lib.sizes

library sizes of a RNA-Seq experiment. Default is 1 for all samples.

Details

The nb.regression.1 function is used for NB2 model fitting with MLE.

Value

A list of quantities to be used in the main nb.gof.v function.

Author(s)

Gu Mi <neo.migu@gmail.com>, Yanming Di, Daniel Schafer

References

See https://github.com/gu-mi/NBGOF/wiki/ for more details.


gu-mi/NBGOF documentation built on Oct. 25, 2020, 3:30 a.m.