Description Usage Arguments Details Value Author(s) See Also Examples
Computes the Bayesian Information Criterion for a fitted parametric model.
1 |
fit |
fitted model; see details below |
subset |
A "logical" or "numeric" vector indicating the subset of points used to compute the fitted model. |
scale |
optional numeric specifying the scale parameter of the
model; see |
enp |
equivalent number of parameters in the fitted model. If
missing, the |
loss.fun |
the loss function used to calculate deviance; the
default uses the squared deviation from the fitted values;
one could also use absolute deviations ( |
The argument fit
can be an object of class
marrayFit
, in which case the residuals
component
from the marrayFit
object will be extracted to calculate
the deviance; the user can also pass in a numeric vector, in which
case it will be interpreted as the residuals and the user needs to
specify the argument enp
.
The criterion used is
BIC = -2*log{L} + k * enp,
where L is the likelihood and enp
the equivalent number of
parameters of fit
. For linear models (as in marrayFit
),
-2log{L} is computed from the deviance.
k = log(n)
corresponds to the BIC and is the penalty for
the number of parameters.
A numeric vector of length 4, giving
Dev |
the deviance of the |
enp |
the equivalent number of parameters of the
|
penalty |
the penalty for number of parameters. |
Criterion |
the Akaike Information Criterion for |
Yuanyuan Xiao, yxiao@itsa.ucsf.edu,
Jean Yee Hwa Yang, jean@biostat.ucsf.edu
1 2 3 4 5 6 7 8 9 10 11 12 |
Loading required package: marray
Loading required package: limma
Dev enp penalty Criterion
-10147.904794 1.000000 9.041685 -10138.863109
Dev enp penalty Criterion
-10147.904794 1.000000 9.041685 -10138.863109
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.