predict.tbl_post_pred: Posterior predictions

View source: R/predicted_extraction.R

predict.tbl_post_predR Documentation

Posterior predictions

Description

summary table of predicted values from predictive posterior

Usage

## S3 method for class 'tbl_post_pred'
predict(x, scale = c("resp"), center = median, interval = 0.95, ...)

## S3 method for class 'brmsfit'
predict(x, scale = c("resp"), center = median, interval = 0.95, ...)

## S3 method for class 'stanreg'
predict(x, scale = c("resp"), center = median, interval = 0.95, ...)

Arguments

x

regression model or tbl_postpred

scale

linpred or resp

center

function for computing the center estimate (median)

interval

credibility interval: .95

...

passing parameters to tbl_postpred (e.g. thin)

Value

coefficient table with center and interval estimates per obs

The standard center function is the posterior median

Author(s)

Martin Schmettow


schmettow/bayr documentation built on March 23, 2024, 7:49 p.m.