The R Project SVN R

Rev

Rev 89413 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 89413 Rev 89737
Line 18... Line 18...
18
%\alias{print.infl}
18
%\alias{print.infl}
19
%\alias{summary.infl} <- To document: has 'digits' & return()s
19
%\alias{summary.infl} <- To document: has 'digits' & return()s
20
\alias{hat}
20
\alias{hat}
21
\alias{hatvalues}
21
\alias{hatvalues}
22
\alias{hatvalues.lm}
22
\alias{hatvalues.lm}
-
 
23
\alias{hatvalues.nls}
23
\alias{rstandard}
24
\alias{rstandard}
24
\alias{rstandard.lm}
25
\alias{rstandard.lm}
25
\alias{rstandard.glm}
26
\alias{rstandard.glm}
26
\alias{rstudent}
27
\alias{rstudent}
27
\alias{rstudent.lm}
28
\alias{rstudent.lm}
Line 79... Line 80...
79
               dispersion = summary(model)$dispersion,
80
               dispersion = summary(model)$dispersion,
80
               hat = infl$hat, \dots)
81
               hat = infl$hat, \dots)
81
 
82
 
82
hatvalues(model, \dots)
83
hatvalues(model, \dots)
83
\method{hatvalues}{lm}(model, infl = lm.influence(model, do.coef = FALSE), \dots)
84
\method{hatvalues}{lm}(model, infl = lm.influence(model, do.coef = FALSE), \dots)
-
 
85
\method{hatvalues}{nls}(model, \dots)% ../R/nls.R %
84
 
86
 
85
hat(x, intercept = TRUE)
87
hat(x, intercept = TRUE)
86
}
88
}
87
\arguments{
89
\arguments{
88
  \item{model}{an \R object, typically returned by \code{\link{lm}} or
90
  \item{model}{an \R object, typically returned by \code{\link{lm}} or
Line 157... Line 159...
157
  For \code{hatvalues}, \code{dfbeta}, and \code{dfbetas}, the method
159
  For \code{hatvalues}, \code{dfbeta}, and \code{dfbetas}, the method
158
  for linear models also works for generalized linear models. These were
160
  for linear models also works for generalized linear models. These were
159
  updated for R 4.6 to use \emph{working} residuals and weights; it is
161
  updated for R 4.6 to use \emph{working} residuals and weights; it is
160
  assumed that the model has methods suitable for
162
  assumed that the model has methods suitable for
161
  \code{\link{weighted.residuals}()}.
163
  \code{\link{weighted.residuals}()}.
-
 
164
 
-
 
165
  The \code{\link{nls}} method for \code{hatvalues()} is based on theory in
-
 
166
  \bibcitet{R:StLaurent+Cook:1992}.
162
}
167
}
163
\author{
168
\author{
164
  Several R Core Team members and John Fox, originally in his \CRANpkg{car}
169
  Several R Core Team members and John Fox, originally in his \CRANpkg{car}
165
  package.
170
  package; \code{hatvalues.nls} by R Dev Day participants, see \PR{18897}.
166
}
171
}
167
\references{
172
\references{
168
  \bibshow{*,
173
  \bibshow{*,
169
    R:Fox:2000,
174
    R:Fox:2000,
170
    R:Fox:2002,
175
    R:Fox:2002,