predict.hsstan | R Documentation |

Draws from the posterior predictive distribution of the outcome.

## S3 method for class 'hsstan' predict(object, newdata = NULL, type = NULL, ...)

`object` |
An object of class |

`newdata` |
Optional data frame containing the variables to use to
predict. If |

`type` |
Option for binary outcomes only. Default |

`...` |
Optional arguments passed to |

For a binary outcome and type = `NULL`

, a character vector with the
name of the class that has the highest probability for each sample.
For a binary outcome and type = `prob`

, a 2-dimensional matrix with the
probability of class 0 and of class 1 for each sample.
For a continuous outcome a numeric vector with the predicted value for
each sample.

Athina Spiliopoulou

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.