rpart.permutation.addPvalues {rpart.permutation}R Documentation

Function to add P-values to an rpart object.

Description

Computes P-values from raw permutation replicate counts.

Usage

rpart.permutation.addPvalues(model, nseen, nbetterR, nbetterX)

Arguments

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.

Value

The model passed in is returned. The cptable is augmented to include $P$-values for the relative and cross-validation errors.

Author(s)

Daniel S. Myers


[Package rpart.permutation version 1.01 Index]