Displaying 1 result from an estimated 1 matches for "tpbug_".
Did you mean:
tpbug
2003 Mar 26
0
termplot (PR#2687)
# r-bugs@r-project.org
`termplot' bombs if the original dataset contains NAs in the predictors,
even if these were ignored during fitting:
test> bug.data_ data.frame( x=c(1:3, NA), y=runif( 4))
test> lm.tpbug_ lm( y~x, data=bug.data)
test> termplot( lm.tpbug)
Error in xy.coords(x, y, xlabel, ylabel, log) :
subscript out of bounds
A simple fix seems to be add the commented line below, near the top of
`termplot':
n.tms <- ncol(tms <- as.matrix(if (se)
terms$fit
else...