Description Usage Arguments Details Value Note Author(s) See Also Examples

View source: R/predict.segmented.r

Returns predictions and optionally associated quantities (standard errors or confidence intervals) from a fitted segmented model object.

1 2 |

`object` |
a fitted segmented model coming from |

`newdata` |
An optional data frame in which to look for variables with which to predict. If omitted, the fitted values are used. |

`...` |
further arguments passed to |

Basically `predict.segmented`

builds the right design matrix accounting for breakpoint and passes it
to `predict.lm`

or `predict.glm`

depending on the actual model fit `object`

.

`predict.segmented`

produces a vector of predictions with possibly associated standard errors or confidence intervals.
See `predict.lm`

or `predict.glm`

.

If `type="terms"`

, `predict.segmented`

returns predictions for each component of the segmented term.
Namely if ‘my.x’ is the segmented variable, predictions for ‘my.x’, ‘U1.my.x’ and ‘psi1.my.x’ are returned. These are
meaningless individually, however their sum provides the predictions for the segmented term.

Vito Muggeo

`plot.segmented`

, `broken.line`

, `predict.lm`

, `predict.glm`

1 2 3 4 5 6 7 8 9 10 |

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.