When t.pval=0, then no regressors should be retained. However, this is not always the case, as the following code illustrates:
set.seed(1)
x1 <- rnorm(100)
x2 <- rnorm(100)
x3 <- rnorm(100)
x4 <- rnorm(100)
y <- 8+2*x1+3*x2+4*x3+rnorm(100)
getsFun(y, cbind(1,x1,x2,x3,x4), t.pval=0) #erroneously retains 1 and 4
Thanks to Santiago Diaz Espitia for notifying us about the issue. The problem may affect all functions that rely on getsFun(). This includes, amongst other, gets.arx(), gets.logitx(), gets.lm() and isat.default().
When
t.pval=0, then no regressors should be retained. However, this is not always the case, as the following code illustrates:Thanks to Santiago Diaz Espitia for notifying us about the issue. The problem may affect all functions that rely on
getsFun(). This includes, amongst other,gets.arx(),gets.logitx(),gets.lm()andisat.default().