patchdistr_sews_predict: predict method for patchdistr_sews objects
Description
Export the observed and fitted patch size distributions
Usage
# S3 method for patchdistr_sews_single
predict(object, ..., newdata = NULL, best_only = FALSE, xmin_rescale = FALSE)
Value
A list with component obs, a data.frame containing the observed
distribution values and pred, a data.frame containing the fitted
values.
Arguments
- object
An patchdistr_sews
object
- ...
Additional arguments (ignored)
- newdata
A vector of patch sizes at which the fit is returned (default
to 200 regularly-spaced values).
- best_only
Return values for only the best fit of each element (matrix)
in object
, or return the values for all fitted distribution.
- xmin_rescale
If the xmin value used for fits is above one, then setting this
to TRUE
will rescale the predicted probabilities so that they align on
the cumulative distribution of the observed patch sizes
Details
The function patchdistr_sews
fits competing
distribution models to the observed patch size distributions. This
functions is able to export the observed values and the fitted values
altogether.
Examples
Run this code
if (FALSE) {
patch_indics <- patchdistr_sews(forestgap)
predict(patch_indics)
}
Run the code above in your browser using DataLab