Skip to content

Commit 6eee118

Browse files
author
pd
committed
sqrt fell out in rstandard
git-svn-id: https://svn.r-project.org/R/trunk@89398 00db46b3-68df-0310-9c12-caf00c1e9a41
1 parent df39dda commit 6eee118

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/library/stats/R/lm.influence.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,7 @@ rstandard.glm <-
198198
{
199199
type <- match.arg(type)
200200
res <- switch(type, pearson = infl$pear.res, infl$dev.res)
201-
res <- res/(sigma(model) * (1 - infl$hat))
201+
res <- res/(sigma(model) * sqrt(1 - infl$hat))
202202
res[is.infinite(res)] <- NaN
203203
res
204204
}

0 commit comments

Comments
 (0)