Summary method for an object of class quint
.
# S3 method for quint
summary(object, digits = 2, ...)
a quint
object. This can be the output of quint
.
specified number of decimal places (default is 2).
optional additional arguments.
prints a summarized version of the quint
output.
This function is a method for the generic function summary for class
quint
. It extracts the following essential components from a quint
object: 1) Specification of the partitioning criterion; 2) Fit information;
3) Split information, and 4) Leaf information.
# NOT RUN {
data(bcrp)
formula1<- I(cesdt1-cesdt3)~cond | nationality+marital+wcht1+
age+trext+comorbid+disopt1+uncomt1+negsoct1
control1<-quint.control(maxl=5,Bootstrap=FALSE)
quint1<-quint(formula1, data= subset(bcrp,cond<3),control=control1 )
summary(quint1)
##############################################3
# Example with only root node tree as outcome
data(SimData_1)
formula<- Y~A |X1+X2+X3+X4+X5
#Adjust the control parameters only to save computation time in the example;
#The default control parameters are preferred
control<-quint.control(maxl=5,B=2)
set.seed(2) #this enables you to repeat the results of the bootstrap procedure
quint_1<-quint(formula, data= SimData_1,control=control)
quint_1pr<-prune(quint_1)
summary(quint_1pr)
# }
Run the code above in your browser using DataLab