The R Project SVN R

Rev

Rev 61433 | Rev 63604 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 61433 Rev 63213
Line 1... Line 1...
1
% File src/library/stats/man/logLik.Rd
1
% File src/library/stats/man/logLik.Rd
2
% Part of the R package, http://www.R-project.org
2
% Part of the R package, http://www.R-project.org
3
% Copyright 1995-2012 R Core Team
3
% Copyright 1995-2013 R Core Team
4
% Distributed under GPL 2 or later
4
% Distributed under GPL 2 or later
5
 
5
 
6
\newcommand{\CRANpkg}{\href{http://CRAN.R-project.org/package=#1}{\pkg{#1}}}
6
\newcommand{\CRANpkg}{\href{http://CRAN.R-project.org/package=#1}{\pkg{#1}}}
7
 
7
 
8
\name{logLik}
8
\name{logLik}
Line 37... Line 37...
37
  \CRANpkg{nlme}.
37
  \CRANpkg{nlme}.
38
}
38
}
39
%   \code{corStruct}, \code{lmList}, \code{lmeStruct}, \code{reStruct}, and
39
%   \code{corStruct}, \code{lmList}, \code{lmeStruct}, \code{reStruct}, and
40
%   \code{varFunc}.
40
%   \code{varFunc}.
41
\details{
41
\details{
-
 
42
  \code{logLik} is most commonly used for a model fitted by maximum
-
 
43
  likelihood, and some uses, e.g. by \code{\link{AIC}}, assume this.  So
-
 
44
  care is needed where other fit criteria have been used, for example
-
 
45
  REML (the default for \code{"lme"}).
-
 
46
 
42
  For a \code{"glm"} fit the \code{\link{family}} does not have to
47
  For a \code{"glm"} fit the \code{\link{family}} does not have to
43
  specify how to calculate the log-likelihood, so this is based on using
48
  specify how to calculate the log-likelihood, so this is based on using
44
  the family's \code{aic()} function to compute the AIC.  For the
49
  the family's \code{aic()} function to compute the AIC.  For the
45
  \code{\link{gaussian}}, \code{\link{Gamma}} and
50
  \code{\link{gaussian}}, \code{\link{Gamma}} and
46
  \code{\link{inverse.gaussian}} families it assumed that the dispersion
51
  \code{\link{inverse.gaussian}} families it assumed that the dispersion
Line 68... Line 73...
68
  the restrictions if \code{REML = TRUE}).
73
  the restrictions if \code{REML = TRUE}).
69
}
74
}
70
\seealso{
75
\seealso{
71
  \code{\link[nlme:logLik.lme]{logLik.gls}}, \code{\link[nlme]{logLik.lme}}, in
76
  \code{\link[nlme:logLik.lme]{logLik.gls}}, \code{\link[nlme]{logLik.lme}}, in
72
  package \CRANpkg{nlme}, etc.
77
  package \CRANpkg{nlme}, etc.
-
 
78
 
-
 
79
  \code{\link{AIC}}
73
}
80
}
74
\references{
81
\references{
75
  For \code{logLik.lm}:
82
  For \code{logLik.lm}:
76
 
83
 
77
  Harville, D.A. (1974).
84
  Harville, D.A. (1974).