Description Usage Arguments Value
View source: R/Predict_fitted_vals.R
Extracts the predicted fitted value as desired from a jagsNEC model fit obeject
1 2 3 4 5 6 7 | predict.jagsNECfit(
X,
precision = 100,
posterior = FALSE,
x.range = NA,
prob.vals = c(0.5, 0.025, 0.975)
)
|
X |
a jagsNEC model fit as returned by a call to jags from fit.jagsNEC or fit.jagsMANEC |
precision |
The number of unique x values over which to find fitted - large values will make the fitted estimate more precise. |
posterior |
A logical value indicating if the full posterior sample of calculated fitted values should be returned instead of just the median and 95 credible intervals. |
x.range |
A range of x values over which to consider extracting fitted |
prob.vals |
A vector indicating the probability values over which to return the estimated fitted value. Defaults to 0.5 (median) and 0.025 and 0.975 (95 percent credible intervals). |
A vector containing the estimated fitted value, including upper and lower 95 percent Credible Interval bounds
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.