predict.brm {brm}R Documentation

Fitted probabilities from brm fits

Description

Calculate fitted probabilities from a fitted binary regression model object.

Usage

## S3 method for class 'brm'
predict(object, x.new = NULL, va.new = NULL, vb.new = NULL, ...)

Arguments

object

A fitted object from function brm.

x.new

An optional vector of x.

va.new

An optional covariate matrix to make predictions with. If omitted, the original matrix va is used.

vb.new

An optional covariate matrix to make predictions with. If vb.new is omitted but va.new is not, then vb.new is set to be equal to va.new. If both vb.new and va.new are omitted, then the original matrix vb is used.

...

affecting the predictions produced.

Value

If x.new is omitted, a matrix consisting of fitted probabilities for p0 = P(y=1|x=0,va,vb) and p1 = P(y=1|x=1,va,vb).

If x.new is supplied, a vector consisting of fitted probabilities px = P(y=1|x=x.new,va,vb).


[Package brm version 1.1.1 Index]