predict.brm {brm} | R Documentation |
brm
fitsCalculate fitted probabilities from a fitted binary regression model object.
## S3 method for class 'brm'
predict(object, x.new = NULL, va.new = NULL, vb.new = NULL, ...)
object |
A fitted object from function |
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. |
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).