plot.TSVC: Plotting of Varying Coefficient Trees

Description Usage Arguments Author(s) References See Also Examples

View source: R/plot.TSVC.R

Description

Visualization of trees of effects of covariates that vary with the values of one or several effect modifiers.

Usage

1
2
3
## S3 method for class 'TSVC'
plot(x, variable, cex.lines = 2, cex.branches = 1,
  cex.coefs = 1, cex.main = 1, title = NULL, ...)

Arguments

x

object of class TSVC.

variable

name of the variable, for which the tree shall be plotted.

cex.lines

width of branches of the tree.

cex.branches

size of the labels of the tree.

cex.coefs

size of the coefficients in the terminal nodes of the tree.

cex.main

size of the title of the tree.

title

optional title, which is addded to the tree; if title=NULL the title is the name of the variable in the data.

...

further arguments passed to or from other methods.

Author(s)

Moritz Berger <Moritz.Berger@imbie.uni-bonn.de>
http://www.imbie.uni-bonn.de/personen/dr-moritz-berger/

References

Berger, M., G. Tutz and M. Schmid (2018). Tree-Structured Modelling of Varying Coefficients. Statistics and Computing, published online, https://doi.org/10.1007/s11222-018-9804-8.

See Also

TSVC, predict.TSVC, summary.TSVC

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
# Swiss Labour Market 
library(AER)
data("SwissLabor")

# recode factors 
sl <- SwissLabor
sl$participation <- as.numeric(sl$participation)-1
sl$foreign       <- as.numeric(sl$foreign)-1

## Not run: 
fit1 <- TSVC(participation~income+age, data=sl, family=binomial(link="logit"), 
             nperm=1000, trace=TRUE)
plot(fit1, "income")

## End(Not run)

TSVC documentation built on July 1, 2020, 7:08 p.m.

Related to plot.TSVC in TSVC...