https://github.com/cran/MuMIn
Raw File
Tip revision: c34a6ff5a78401b7e5681b8eca1ff3fda6b01dc9 authored by Kamil Bartoń on 23 January 2013, 00:00:00 UTC
version 1.9.0
Tip revision: c34a6ff
weights.Rd
\name{Weights}
\alias{Weights}
\encoding{utf-8}

\title{Akaike weights}
\description{
Calculate or extract normalized model likelihoods (\sQuote{Akaike weights}).
}

\usage{
Weights(x)
}

\arguments{
	\item{x}{ a numeric vector of information criterion values such as AIC, or
	objects returned by functions like \code{AIC}. There are also methods for
	extracting Akaike weights from a \code{model.selection} or \code{averaging}
	objects. }

}

\value{
	a numeric vector of normalized likelihoods.
}


\author{Kamil Barto\enc{ń}{n}}

\seealso{
\code{\link{importance}}

\code{\link{weights}}, which extracts fitting weights from model objects.

}

\examples{

data(Beetle)

fm1 <- glm(Prop ~ dose, data=Beetle, family=binomial)
fm2 <- update(fm1, . ~ . + I(dose^2))
fm3 <- update(fm1, . ~ log(dose))
fm4 <- update(fm3, . ~ . + I(log(dose)^2))

round(Weights(AICc(fm1, fm2, fm3, fm4)), 3)


}

\keyword{models}
back to top