tdForm(rd, prim.cov = FALSE, on.time = TRUE, log.t = FALSE, lev.rm = NULL)
data.frame
object with factor-level columns, or
character
vector with names of factor-level columns
which are decreasingly ordered.logical
. Print a primary covariate form:
'~ cov'. If FALSE then a complete
formula: 'resp ~ cov | group' is printed.logical
. If TRUE then t =
'time' (see rtimes
). If FALSE then
t = 'year'.logical
. If TRUE then f(t) =
ln(t)
. Default FALSE produces a td formcharacter
name of the
factor-level column to be removed from the
formula.## an ltd formula:
lev <- c('plot','tree')
tdeq <- tdForm(lev,log.t = TRUE)
tdeq
## (not run) only primary covariate:
tdeq1 <- tdForm(lev,prim.cov = TRUE)
tdeq1
Run the code above in your browser using DataLab