Description Usage Arguments Details Value References See Also Examples
View source: R/internal_functions.R
This functions estimates the parameters of the negative binomial
distribution by maximum likelihood. It is called by the functions
omnibus
and proprius
.
1 | intern.estim(y, offset = NULL)
|
y |
random variable: numeric vector of length |
offset |
numeric vector of length |
We assume the negative binomial distribution y_i ~ NB(mu,phi)
,
where the samples are indexed by i
(i=1,...,n
).
Our parametrisation leads to E[y]= mu
and Var[y]= mu + phi*mu^2
.
With the an offset the model becomes y_i ~ NB(a_i*mu,phi)
,
where the a_i
are known.
The function returns a list of numeric vectors.
A Rauschenberger, MA Jonker, MA van de Wiel, and RX Menezes (2016). "Testing for association between RNA-Seq and high-dimensional data", BMC Bioinformatics. 17:118. html pdf (open access)
This is an internal
function. The user functions
are cursus
, omnibus
,
and proprius
.
1 2 3 | set.seed(1)
y <- rnbinom(n=1000,mu=10,size=1/0.2)
intern.estim(y)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.