Skip to content

Update rstanarm function for prediction #389

@juliasilge

Description

@juliasilge

In this line, the rstanarm function needs to change to rstanarm::posterior_epred()

func = c(pkg = "rstanarm", fun = "posterior_linpred"),

The warning that is being generated and shown to users at prediction time is:

Instead of posterior_linpred(..., transform=TRUE) please call posterior_epred(), which provides equivalent functionality.

This also needs to change for logistic_reg().

Related to tidymodels/tidymodels.org#200 and tidymodels/TMwR#43

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions