betabinase | R Documentation |
This function fits a beta-binomial model from the package aod and wraps it so that warnings and/or errors are output.
betabinase(y, total, mod.mat = NULL)
y |
vector of counts to be modeled |
total |
vector of total counts |
mod.mat |
optional model matrix that contains the design matrix of interest. Used for adding the thin plate regression spline basis functions in the 'spase' function and for adding cell type as a covariate. Note that we assume there is an intercept column in mod.mat. |
Just wraps betabin to return either the fit or warning description. Warnings and errors occur when the model doesn't converge. These will be flagged for removing downstream.
A list the result, warnings, and errors
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.