summary.polymars | R Documentation |

Gives details of a `polymars`

object.

```
## S3 method for class 'polymars'
summary(object, ...)
## S3 method for class 'polymars'
print(x, ...)
```

`object,x` |
object of the class |

`...` |
other arguments are ignored. |

These two functions provide identical printed information. about the fitting steps and the model selected. The first data frame contains a row for each step of the fitting procedure. In the columns are: a 1 for an addition step or a 0 for a deletion step, the size of the model at each step, residual sums of squares (RSS) and the generalized cross validation value (GCV), testset residual sums of squares or testset misclassification, whatever was used for the model selection. The second data frame, model, contains a row for each basis function of the model. Each row corresponds to one basis function (with two possible components). The pred1 column contains the indices of the first predictor of the basis function. Column knot1 is a possible knot in this predictor. If this column is NA, the first component is linear. If any of the basis functions of the model is categorical then there will be a level1 column. Column pred2 is the possible second predictor involved (if it is NA the basis function only depends on one predictor). Column knot2 contains the possible knot for the predictor pred2, and it is NA when this component is linear. This is a similar format to the startmodel argument together with an additional first row corresponding to the intercept but the startmodel doesn't use a separate column to specify levels of a categorical variable . If any predictor in pred2 is categorical then there will be a level2 column. The column "coefs" (more than one column in the case of multiple response regression) contains the coefficients.

Martin O'Connor.

Charles Kooperberg, Smarajit Bose, and Charles J. Stone (1997).
Polychotomous regression. *Journal of the American Statistical
Association*, **92**, 117–127.

Charles J. Stone, Mark Hansen, Charles Kooperberg, and Young K. Truong.
The use of polynomial splines and their tensor products in extended
linear modeling (with discussion) (1997). *Annals of Statistics*,
**25**, 1371–1470.

`polymars`

,
`design.polymars`

,
`persp.polymars`

,
`plot.polymars`

,
`predict.polymars`

.

```
data(state)
state.pm <- polymars(state.region, state.x77, knots = 15, classify = TRUE)
summary(state.pm)
```

polspline documentation built on Oct. 27, 2023, 1:07 a.m.

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.