Learn R Programming

genpathmox (version 0.2)

summary.xtree.reg: Summary function for the Pathmox Segmentation Trees: linaer regression and LAD

Description

The function summary.xtree.reg returns the most important results obtained by the function reg.pathmox. In order, it provides the parameters algorithm ( threshold significance,node size limit,tree depth level and the method used for the split partition), the basic characteristics of the tree (deep and number of terminal nodes), the basic characteristics of the nodes and the F-global and F-coefficients results. For the test results the significance level is indicated.

Usage

## S3 method for class 'xtree.reg':
summary(object, ...)

Arguments

object
An object of class "xtree.reg".
...
Further arguments are ignored.

References

Lamberti, G. (2014) Modeling with Heterogeneity. PhD Dissertation.

summary.xtree.pls, reg.pathmox.

Examples

Run this code
#example of LM in alumni satisfaction

data(fibtelereg)

segvar= fibtelereg[,2:11]

data.fib= fibtelereg[,12:18]

segvar$Age 		= factor(segvar$Age, ordered=T)
segvar$Salary 	= factor(segvar$Salary,
		levels=c("<18k","25k","35k","45k",">45k"), ordered=T)
segvar$Accgrade = factor(segvar$Accgrade,
		levels=c("accnote<7","7-8accnote","accnote>8"), ordered=T)
segvar$Grade 	= factor(segvar$Grade,
		levels=c("<6.5note","6.5-7note","7-7.5note",">7.5note"), ordered=T)

fib.reg.pathmox=reg.pathmox(Satisfact~.,data=data.fib,segvar,
		signif=0.05,deep=2,method="lm",size=0.15)

 summary(fib.reg.pathmox)

Run the code above in your browser using DataLab