patchdistr_spews_predict: predict method for patchdistr_spews objects

Description Usage Arguments Details Value See Also Examples

Description

Export the observed and fitted patch size distributions

Usage

1
2
3
## S3 method for class 'patchdistr_spews_single'
predict(object, ..., newdata = NULL,
  best_only = FALSE)

Arguments

object

An patchdistr_spews object

...

Ignored additionnal arguments

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.

Details

The function patchdistr_spews fits competing distribution models to the observed patch size distributions. This functions is able to export the observed values and the fitted values altogether.

Value

A list with component obs, a data.frame containing the observed distribution values and pred, a data.frame containing the fitted values.

See Also

patchdistr_spews, plot, plot_distr,

Examples

1
2
3
4
5
6
7
## Not run:  
patch_indics <- patchdistr_spews(forestgap)

predict(patch_indics)


## End(Not run)

spatialwarnings documentation built on May 2, 2019, 5:16 p.m.