Description Usage Arguments Author(s) References See Also Examples
View source: R/plot_n_text_nouse.R
Labels the current plot of the tree generated from LongCART object with text.
1 2 |
x |
a fitted object of class |
splits |
similar to plot.rpart; logical flag. If |
all |
Logical. If TRUE, all nodes are labeled, otherwise just terminal nodes. |
use.n |
Logical. If TRUE, adds |
minlength |
the length to use for factor labels. A value of 1 causes them to be printed as 'a', 'b', ..... Larger values use abbreviations of the label names. See the labels.rpart function for details. |
... |
arguments to be passed to or from other methods. |
Madan Gopal Kundu madan_g.kundu@yahoo.com
Kundu, M. G., and Harezlak, J. (2019). Regression trees for longitudinal data with baseline covariates. Biostatistics & Epidemiology, 3(1):1-22.
plotLongCART
, LongCART
, StabCat
, StabCont
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 | #--- Get the data
#data(ACTG175)
#--- Run LongCART()
#gvars=c("age", "gender", "wtkg", "hemo", "homo", "drugs",
# "karnof", "oprior", "z30", "zprior", "preanti", "race",
# "str2", "symptom", "treat", "offtrt")
#tgvars=c(1, 0, 1, 0, 0, 0,
# 1, 0, 0, 0, 1, 0,
# 0, 0, 0, 0)
#out<- LongCART(data=ACTG175, patid="pidnum", fixed=cd4~time,
# gvars=gvars, tgvars=tgvars, alpha=0.05,
# minsplit=100, minbucket=50, coef.digits=2)
#--- Plot tree
#par(xpd = TRUE)
#plot(out, compress = TRUE)
#text(out, use.n = TRUE)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.