Learn R Programming

GetR (version 0.1)

gTree: Calculate Guttman error trees using recursive partitioning

Description

The gTree function calculates Guttman error trees ("GETs") by recursively partitioning the Guttman errors.

Usage

gTree(formula, data = list(), type = "once")

Arguments

formula
a formula.
data
a data.frame
type
a factor. Has currently no use.

Value

Returns a Guttman error tree.

Examples

Run this code
data(Communality)
Communality$ge <- guttmanErrors(Communality[,1:10])
Communality.tree <- gTree(ge ~ sex + age, data = Communality)
plot(Communality.tree)

Run the code above in your browser using DataLab