gTree: Calculate Guttman error trees using recursive partitioning

Description Usage Arguments Value Examples

Description

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

Usage

1
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

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

Example output

Loading required package: party
Loading required package: grid
Loading required package: mvtnorm
Loading required package: modeltools
Loading required package: stats4
Loading required package: strucchange
Loading required package: zoo

Attaching package: 'zoo'

The following objects are masked from 'package:base':

    as.Date, as.Date.numeric

Loading required package: sandwich

Attaching package: 'GetR'

The following object is masked from 'package:grid':

    gTree

GetR documentation built on May 2, 2019, 12:38 p.m.