rpart.permutation.addPvalues {rpart.permutation} | R Documentation |
Computes P-values from raw permutation replicate counts.
rpart.permutation.addPvalues(model, nseen, nbetterR, nbetterX)
model |
An object as returned from the rpart function. |
nseen |
An integer vector such that nseen[i] is the number of replicates seen for the subtree with i splits. |
nbetterR |
An integer vector such that nbetterR[i] is the number of replicates for the subtree with i splits with a relative error better than the original model. |
nbetterX |
As nbetterR, except for cross-validation error, not relative error. |
The model passed in is returned. The cptable is augmented to include $P$-values for the relative and cross-validation errors.
Daniel S. Myers