rpart.permutation.clientFunc {rpart.permutation}R Documentation

Worker function for MPI client nodes

Description

This internal function is executed on MPI client nodes and executes the rpart calls needed to generate permutation replicates.

Usage

rpart.permutation.clientFunc(dataset, responseidx, model, formula, nperms)

Arguments

dataset The dataset on which the rpart models will be built.
responseidx The index in dataset of the response variable.
model The original rpart model.
formula The formula used to create model.
nperms Number of permutations to execute.

Value

A list with the following elements:

R Integer vector such that the ith element is the number of replicates having a better relative error than the original model for the i-split subtree.
X As above, but using cross-validation error instead of relative error.
nseen Integer vector such that the ith element is the total number of replicates reporting error values for the i-split subtree

Author(s)

Daniel S. Myers


[Package rpart.permutation version 1.01-1 Index]