Rev 9687 | Blame | Last modification | View Log | Download | RSS feed
\name{delete.response}\title{Modify Terms Objects}\usage{delete.response(termobj)reformulate(termlabels,response=NULL)drop.terms(termobj, dropx = NULL, keep.response = FALSE)}\alias{reformulate}\alias{drop.terms}\alias{delete.response}\arguments{\item{termobj}{A \code{terms} object}\item{termlabels}{character vector giving the right-hand side of amodel formula.}\item{response}{character string giving the left-hand side ofa model formula.}\item{dropx}{vector of positions of variables to drop from theright-hand side of the model.}\item{keep.response}{Keep the response in the resulting object?}}\description{\code{delete.response} returns a \code{terms} object for the samemodel but with no response variable.\code{drop.terms} removes variables from the right-hand side of themodel.\code{reformulate} creates a formula from a character vector.}\value{\code{delete.response} and \code{drop.terms} return a \code{terms}object.\code{reformulate} returns a \code{formula}.}\seealso{\code{\link{terms}}}\examples{ff <- y ~ z + x + wtt <- terms(ff)ttdelete.response(tt)drop.terms(tt, 2:3, keep.response = TRUE)reformulate(attr(tt, "term.labels"))}\keyword{programming}