21.04.2015 Views

The mvpart Package - NexTag Supports Open Source Initiatives

The mvpart Package - NexTag Supports Open Source Initiatives

The mvpart Package - NexTag Supports Open Source Initiatives

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

28 rpart.class<br />

rpart.branch<br />

Rpart.branch<br />

Description<br />

Internal function for Rpart<br />

Details<br />

rpart.branch is to be used only internally.<br />

rpart.class<br />

Set up for ‘class’ Method for an Rpart Model<br />

Description<br />

Set up for the class method for an rpart model.<br />

Usage<br />

rpart.class(y, offset, parms, wt)<br />

Arguments<br />

y<br />

offset<br />

parms<br />

wt<br />

the responses.<br />

NULL: anything else is an error.<br />

a named list of parameters.<br />

case weights.<br />

Details<br />

rpart.class is to be used only by the function rpart. It validates the input parameter list: if<br />

that is missing or NULL default values are supplied.<br />

Value<br />

Returns a list consisting of<br />

y<br />

y as factor codes,<br />

parms a named list of parameters. This will have components prior, loss and<br />

split (and more if supplied).<br />

numresp<br />

counts<br />

the number of responses (one plus the number of classes).<br />

a vector of counts for each class.<br />

ylevels the response levels corresponding to the codes given in y.<br />

summary<br />

text<br />

a function to be invoked by summary.rpart,<br />

a function to be invoked by text.rpart.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!