Description Usage Arguments Details Value Examples
View source: R/underhill_smoother.R
Fit the underhill smoother (put reference here) to reporting rate distribution over pentades.The underhill smoother is a locally weighted binomial general linear model using a logit link, where the weights are generated using a exponential distribution.
1 2 3 | underhill_smoother(raw_data, species_id, start_month = 7,
selected_area = "Kenya", selection_type = "Country", pentade_window,
first_pentade = 1, last_pentade = 73)
|
raw_data |
Data for a species extracted uing 'extract_data()'. The StartDate column should be of type 'date'. |
species_id |
The species_id for which data is extracted. A complete list of species name and ids are available on the Kenya Bird Map website. |
start_month |
The month to start the pentades from. Default is 7. |
selected_area |
Either a pentad (eg: 0105_3930), country (eg: Kenya), county (eg: Kitui) or province (eg: rift valley). Lists of the same can be applied as well. For instance, for multiple pentads you could use, c('0105_3930', '0110c3620'). |
selection_type |
Can take either of the four values: 'Pentad', 'Country', 'County' or 'Province'. |
pentade_window |
The number of pentades on either side of the target day to give the weights to. |
first_pentade |
The starting value of the pentades. Default is 1. |
last_pentade |
The last value of the pentades. Default is 73. |
Pentades are blocks of 5 consecutive days. The implementation measures pentades from a defined month 'start_month'. This implementation needs review and should not be considered final.
For a full list of all possible values for selection_area, run 'View(africabirdmap::pentads_geographical_features)' in the console.
A dataframe where each row is a pentade with the 'fit' values, the standard errors ('se'), the 'reporting_rates' and its associated inputs. Ignore the various date columns as those are only meant to be used in graphs.
1 2 3 4 5 6 7 | ## Not run:
underhill_smoother(raw_data, species_id, start_month = 7, pentade_window, first_pentade = 1, last_pentade = 73)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.