Description Usage Arguments Details Value Examples
View source: R/summary.quint.R
Summary method for an object of class quint
.
1 2 |
object |
a |
digits |
specified number of decimal places (default is 2). |
... |
optional additional arguments. |
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.
prints a summarized version of the quint
output.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 | 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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.