Displaying 4 results from an estimated 4 matches for "jval".
Did you mean:
_val
1997 Aug 25
0
R-alpha: R FAQ
...d in:
R> cube(2)
[1] 8
The following more `realistic' example illustrating the differences in
scoping is due to Thomas Lumley <thomas@biostat.washington.edu>. The
function
jackknife.lm <- function(lmobj) {
n <- length(resid(lmobj))
jval <- t(apply(as.matrix(1:n), 1,
function(i) coef(update(lmobj, subset = -i))))
(n - 1) * (n - 1) * var(jval) / n
}
does something useful in R, but does not work in S. In order to make
it work in S you need to explicitly pass the linear model object in...
1997 Dec 09
3
R-beta: R FAQ v0.60
...n:
R> cube(2)
[1] 8
The following more `realistic' example illustrating the differences in
scoping is due to Thomas Lumley <thomas at biostat.washington.edu>. The
function
jackknife.lm <- function(lmobj) {
n <- length(resid(lmobj))
jval <- t(apply(as.matrix(1:n), 1,
function(i) coef(update(lmobj, subset = -i))))
(n - 1) * (n - 1) * var(jval) / n
}
does something useful in R, but does not work in S. In order to make
it work in S you need to explicitly pass the linear model object in...
1997 Dec 09
3
R-beta: R FAQ v0.60
...n:
R> cube(2)
[1] 8
The following more `realistic' example illustrating the differences in
scoping is due to Thomas Lumley <thomas at biostat.washington.edu>. The
function
jackknife.lm <- function(lmobj) {
n <- length(resid(lmobj))
jval <- t(apply(as.matrix(1:n), 1,
function(i) coef(update(lmobj, subset = -i))))
(n - 1) * (n - 1) * var(jval) / n
}
does something useful in R, but does not work in S. In order to make
it work in S you need to explicitly pass the linear model object in...
1997 Dec 09
3
R-beta: R FAQ v0.60
...n:
R> cube(2)
[1] 8
The following more `realistic' example illustrating the differences in
scoping is due to Thomas Lumley <thomas at biostat.washington.edu>. The
function
jackknife.lm <- function(lmobj) {
n <- length(resid(lmobj))
jval <- t(apply(as.matrix(1:n), 1,
function(i) coef(update(lmobj, subset = -i))))
(n - 1) * (n - 1) * var(jval) / n
}
does something useful in R, but does not work in S. In order to make
it work in S you need to explicitly pass the linear model object in...