Description Usage Arguments Details Value See Also Examples

View source: R/predict.sbchoice.R

Predicting method for objects of class "sbchoice".

1 2 3 |

`object` |
an object of class "sbchoice". |

`newdata` |
a data frame containing new data to predict. If |

`type` |
type of prediction (utility or probability). |

`...` |
optional arguments. Currently not in use. |

The function `predict()`

for S3 object "sbchoice" calculates predicted values
according to the fitted model that is included in `object`

. The values are
predicted with the original data used for fitting the model if `newdata = NULL`

,
otherwise with a new data assigned to `newdata`

.

The current function does not estimate standard errors of predicted values.

When `newdata = NULL`

and `type = utility`

, a vector containing utility
values of choosing Yes under bid values is returned. When `newdata = NULL`

and `type = probability`

, a vector containing probabilities of choosing Yes
is returned. When a new data is assigned to `newdata`

, a vector containing
utility values of choosing Yes (`type = utility`

) or probability of
choosing Yes (`type = probability`

) under the new data is returned.

1 | ```
## See Examples in sbchoice.
``` |

DCchoice documentation built on May 29, 2017, 11:26 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.