predict.bayesnecfit

# S3 method for bayesnecfit
predict(object, ..., precision = 100, x_range = NA)

Arguments

object

An object of class bayesnecfit as returned by bnec.

...

Unused.

precision

A numeric vector of length 1 indicating the number of x values over which to predict values.

x_range

A numeric vector of length 2 indicating the range of x values over which to make predictions.

Value

A list containing two elements: a data.frame with predictor x and fitted y values plus lower and upper credible intervals; a matrix of M x N, with M being the number of posterior draws and N being the number of observations in the input data.