is.smart(my1) # TRUE
is.smart(sm.poly) # TRUE
library(splines)
is.smart(sm.bs) # TRUE
is.smart(sm.ns) # TRUE
is.smart(tan) # FALSE
x <- rnorm(9)
fit1 <- vglm(rnorm(9) ~ x, uninormal)
is.smart(fit1) # TRUE
fit2 <- vglm(rnorm(9) ~ x, uninormal, smart = FALSE)
is.smart(fit2) # FALSE
fit2@smart.prediction
Run the code above in your browser using DataLab