predict.photofit: Sample from posterior prediction

Description Usage Arguments Value

View source: R/ModelAnalysis.R

Description

Sample from posterior prediction

Usage

1
2
3
4
5
6
7
## S3 method for class 'photofit'
predict(
  fit,
  newdata = fit$data,
  nsamples = nrow(fit$posterior),
  include_error = FALSE
)

Arguments

fit

Object of class photofit

newdata

New data for which predictions are requested

nsamples

Number of samples to obtain from the posterior prediction

include_error

Indicate whether predictions should include observation error or not. Defaults to TRUE.

Value

Matrix with sample from predictive posterior with nsamples rows.


AleMorales/photofit documentation built on March 19, 2020, 12:01 a.m.