predictLimitations: Sample from posterior prediction of limiting factors

Description Usage Arguments Value

View source: R/ModelAnalysis.R

Description

Sample from posterior prediction of limiting factors

Usage

1
2
3
4
5
6
predictLimitations(
  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.