BAM.plot2 | R Documentation |
This function is a modified version of BAM.plot for compatibility with the shiny app and is not intended for use in the R-console.
BAM.plot2(x, y, model, interval, level, mars.int)
x |
Numeric. Vector of wear scores. |
y |
Numeric. Vector of ages-at-death associated with the wear scores. |
model |
Character. Choice of regression model. "linear", "quadratic", and "cubic" are supported. |
interval |
The type of age interval used. Can be either "prediction" or "confidence" intervals. |
level |
Determines the level of confidence or prediction intervals. A number between 0 and 1 (not inclusive). |
mars.int |
Logical. If 'TRUE', uses prediction intervals from the MARS model. Recommended if the data show some heteroscedasticity (but not enough to warrant a MARS model). Default set as 'TRUE'. |
A plot of the entered data.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.