# NOT RUN {
## ## ## testdelete
## ## ##
## ## Discrete model
## ##
data(reinis)
## A decomposable model
##
mf <- ~smoke:phys:mental + smoke:systol:mental
object <- dmod(mf, data=reinis)
testdelete(object, c("phys", "mental"))
testdelete(object, c("smoke", "mental"))
#testdelete(object, c("systol", "phys"))
## A non-decomposable model
##
mf <- ~smoke:phys + phys:mental + smoke:systol + systol:mental
object <- dmod(mf, data=reinis)
testdelete(object, c("phys", "mental"))
#testdelete(object, c("systol", "phys"))
#testdelete(object, c("smoke", "mental"))
## ## Continuous model
## ##
data(math)
## A decomposable model
##
mf <- ~me:ve:al + me:al:an
object <- cmod(mf, data=math)
testdelete(object, c("ve", "al"))
testdelete(object, c("me", "al"))
# }
Run the code above in your browser using DataLab