1
0
Fork 0
mirror of https://github.com/prise6/aVirtualTwins.git synced 2024-05-04 20:13:11 +02:00
aVirtualTwins/man/vt.subgroups.Rd

49 lines
1.3 KiB
Plaintext
Raw Normal View History

2016-10-09 02:43:51 +02:00
% Generated by roxygen2: do not edit by hand
2015-07-25 02:10:28 +02:00
% Please edit documentation in R/tools.R
\name{vt.subgroups}
\alias{vt.subgroups}
\title{Visualize subgroups}
\usage{
vt.subgroups(vt.trees, only.leaf = T, only.fav = T, tables = F,
2016-10-09 02:43:51 +02:00
verbose = F, compete = F)
2015-07-25 02:10:28 +02:00
}
\arguments{
2016-10-09 02:43:51 +02:00
\item{vt.trees}{\code{\link{VT.tree}} object. Or return of
2015-07-27 01:40:52 +02:00
\code{\link{vt.tree}} function. Can be a list.}
2015-07-25 02:10:28 +02:00
2015-07-27 01:40:52 +02:00
\item{only.leaf}{logical to select only leaf of trees. TRUE is default.}
2015-07-25 02:10:28 +02:00
2016-10-09 02:43:51 +02:00
\item{only.fav}{logical select only favorable subgroups (meaning with
2015-07-27 01:40:52 +02:00
favorable label of the tree). TRUE is default.}
2015-07-25 02:10:28 +02:00
2016-10-09 02:43:51 +02:00
\item{tables}{set to TRUE if tables of incidence must be shown. FALSE is
2015-07-27 01:40:52 +02:00
default.}
2015-07-25 02:10:28 +02:00
2015-07-27 01:40:52 +02:00
\item{verbose}{print infos during computation. FALSE is default.}
2015-07-31 17:23:31 +02:00
\item{compete}{print competitors rules thanks to competitors computation of
2016-10-09 02:43:51 +02:00
the tree}
2015-07-25 02:10:28 +02:00
}
\value{
data.frame of rules
}
\description{
2016-10-09 02:43:51 +02:00
Function which uses \code{\link{VT.tree}} intern functions. Package
2015-07-27 01:40:52 +02:00
rpart.plot must be loaded. See \code{\link{VT.tree}} for details.
}
\examples{
\dontrun{
# data(sepsis)
vt.o <- vt.data(sepsis, "survival", "THERAPY", T)
# inside model :
vt.f <- vt.forest("one", vt.o)
# use classification tree
vt.tr <- vt.tree("class", vt.f, threshold = c(0.01, 0.05))
# show subgroups
vt.subgroups(vt.tr)
# change options you'll be surprised !
2016-10-09 02:43:51 +02:00
vt.subgroups(vt.tr, verbose = T, tables = T)
2015-07-27 01:40:52 +02:00
}
2016-10-09 02:43:51 +02:00
2015-07-25 02:10:28 +02:00
}