df.adj | R Documentation |
This function calculates adjusted degrees of freedom (i.e., effective number of parameters)
contributed by specified variables based on an object from bglm
.
df.adj(object, vars = 1:length(object$coefficients))
object |
a fitted object from |
vars |
a vector of variable index or names; default is 1:length(object$coefficients), i.e., all coefficients. |
In classical models, the degree of freedom equals the actual number of parameters. However, the degree of freedom (the effective number of parameters) in a hierarchical model can be much smaller than the actual number of parameters. In a hierarchical model, the effective number of parameters is defined as the difference between the posterior mean of the deviance and the deviance at the posterior means of parameters of interest. This function calculates the effective number of parameters based on this definition.
This function returns the adjusted degree of freedom (effective number of parameters) contributed by specified variables.
Nengjun Yi, nyi@uab.edu
Yi, N., Xu, S., Lou, X.Y., and Mallick, H. (2013) Multiple Comparisons in Genetic Association Studies: A Hierarchical Modeling Approach. Statistical Applications in Genetics and Molecular Biology.
Spiegelhalter, D.J., Best, N.G., Carlin, B.P., and Linde, A.v.d. (2002) Bayesian measures of model complexity and fit (with discussion). Journal of the Royal Statistical Society Series B 64: 583-639.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.