Rev 9615 | Blame | Compare with Previous | 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}{vector of strings giving the right-hand side of amodel formula}\item{response}{string giving the left-hand side of a 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 vector of strings.}\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}