predict.bayesmanecfit {bayesnec}R Documentation

predict.bayesmanecfit

Description

predict.bayesmanecfit

Usage

## S3 method for class 'bayesmanecfit'
predict(object, ..., precision = 100, x_range = NA)

Arguments

object

An object of class bayesmanecfit 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.


[Package bayesnec version 2.0.2.5 Index]