Learn R Programming

⚠️There's a newer version (10.3) of this package.Take me there.

phenology (version 9.0)

Tools to Manage a Parametric Function that Describes Phenology and More

Description

Functions used to fit and test the phenology of species based on counts. Based on Girondot, M. (2010) for the phenology function, Girondot, M. (2017) for the convolution of negative binomial, Girondot, M. and Rizzo, A. (2015) for Bayesian estimate, Pfaller JB, ..., Girondot M (2019) for tag-loss estimate, Hancock J, ..., Girondot M (2019) for nesting history, Laloe J-O, ..., Girondot M, Hays GC (2020) for aggregating several seasons.

Copy Link

Version

Install

install.packages('phenology')

Monthly Downloads

474

Version

9.0

License

GPL-2

Maintainer

Marc Girondot

Last Published

April 1st, 2023

Functions in phenology (9.0)

AutoFitPhenology

Automatic fit for phenology and tests
BE_to_LBLE

Transform a set of parameters from Begin End to LengthB LengthE.
Bayesian.remigration

Return a posterior remigration interval.
IPFit

Fit a model of Internesting Period for marine turtles.
ECFOCF_f

Calculate a table of probabilities of ECF and OCF.
ExponentialRegression

Non-biased exponential regression
IPModel

Estimates the pattern of internesting intervals for a set of parameters.
ECFOCF_full

Calculate a table of probabilities of ECF and OCF.
Gratiot

Leatherback nest counts from Gratiot et al. (2006) Figure 1
CI.RMU

Calculate the confidence interval of the results of fitRMU()
Parameter_Global_Year

Transform a set of parameters from Year to global effect, or reverse
LBLE_to_BE

Transform a set of parameters from LengthB LengthE to Begin End.
IPPredict

Predict the possible clutch number based on observed Internesting Period.
RI

Return an expected remigration interval.
MinBMinE_to_Min

Transform a set of parameters from MinB and MinE to Min
MarineTurtles_2002

Database of tagged marine turtles in 2002
LBLE_to_L

Transform a set of parameters from LengthB LengthE format to Length
LnRI_norm

Return a remigration interval.
TableECFOCF

Format a CMR dataset into a file that fitCF can use.
L_to_LBLE

Transform a set of parameters from Length format to LengthB LengthE
Tagloss_cumul

Return the cumulative rate of tag loss.
Tagloss_mcmc

Bayesian model of tag loss using a CMR database.
Tagloss_mcmc_p

Generates set of parameters to be used with Tagloss_mcmc()
Tagloss_daymax

Return the maximum number of days an individual has been observed in a dataset.
Tagloss_LengthObs

Return a list with the number of days for different kinds of individuals are seen.
Tagloss_simulate

Return a list with the number of days different kinds of individuals are seen.
Tagloss_L

Return the -log likelihood of a set of individuals under a model of tagloss.
Tagloss_model

Return the daily rate of tag loss.
Tagloss_fit

fit a model of tag loss using a CMR database.
Tagloss_format

Format a CMR dataset into a file that Tagloss_L can use.
add_phenology

Create a new dataset or add a timeserie to a previous dataset.
fitRMU_MHmcmc_p

Generates set of parameters to be used with fitRMU_MHmcmc()
fitRMU_MHmcmc

Run the Metropolis-Hastings algorithm for RMU.data
fitCF_MHmcmc_p

Generate set of parameters to be used with fitCF_MHmcmc()
fitCF

Fit a model of Clutch Frequency for marine turtles.
add_SE

Add standard error for a fixed parameter.
adapt_parameters

Extract the parameters from a set of parameters to be used with another dataset.
fitCF_MHmcmc

Run the Metropolis-Hastings algorithm for ECFOCF data
fitRMU

Adjust incomplete timeseries with various constraints.
extract_result

Extract the set of parameters from a result object.
generateCF

Generate a set of data to test Clutch Frequency for marine turtles.
lnLCF

Calculate the -log likelihood of data within a model.
logLik.ECFOCF

Return Log Likelihood of a fit done using fitCF
likelihood_phenology

Estimate the likelihood of timeseries based on a set of parameters.
logLik.fitRMU

Return Log Likelihood of a fit generated by fitRMU
fit_phenology

Fit the phenology parameters to timeseries of counts.
fixed.parameters0

Generate a set of fixed parameters for series with only 0 counts
logLik.Tagloss

Return Log Likelihood of a fit generated by Tagloss_fit
map_Gratiot

Likelihood map of Leatherback nest counts
logLik.phenology

Return Log Likelihood of a fit generated by fit_phenology
outLR

Database of leatherback CMR in French Guiana
phenology2fitRMU

Create the data to be used with fitRMU() for a summary(phenology).
map_phenology

Generate a likelihood map varying Phi and Delta.
par_init

Calculate initial set of parameters.
phenology_MHmcmc

Run the Metropolis-Hastings algorithm for data
phenology_MHmcmc_p

Generates set of parameters to be used with phenology_MHmcmc()
plot.ECFOCF

Plot a result of clutch frequency fit.
phenology

Run a shiny application for basic functions of phenology package
o_4p_p1p2

Model of tagloss based on Rivalan data
phenology-package

Tools to Manage a Parametric Function that Describes Phenology and More
plot.fitRMU

Plot the synthesis of RMU fit.
plot_phi

Plot the best likelihood for fixed Phi value.
plot_delta

Plot a likelihood lineplot obtained after map_phenology.
plot.TableECFOCF

Plot a TableECFOCF dataset.
plot.TaglossData

Plot data used for tagloss analysis.
plot.Tagloss

Plot the daily rate of tag loss.
plot.Remigration

Plot the remigration intervals.
plot.IP

Plot a result of Internesting Period fit or data.
plot.phenology

Plot the phenology from a result.
plot.phenologymap

Plot a likelihood map with Delta and Phi varying.
result_Gratiot

Result of the fit of Leatherback nest counts
print.phenologyout

Print the information from a ouput x.
shift_sinusoid

Shift sinusoid information.
result_Gratiot2

Result of the fit of Leatherback nest counts
result_Gratiot_Flat

Result of the fit of Leatherback nest counts
print.phenology

Print the result information from a result x.
remove_site

Removes site information from a set of parameters.
print.phenologymap

Print information on a phenologymap object.
result_Gratiot1

Result of the fit of Leatherback nest counts
result_Gratiot_mcmc

Result of the mcmc for Leatherback nest counts
summary.IP

Print the result information from a IP object.
toggle_Min_PMin

Transform a set of parameters from Min, MinB or MinE to PMin, PminB or PminE, or reverse
summary.phenologyout

Print the summary information from a ouput object.
summary.phenologymap

Print information on a phenologymap object.
summary.phenology

Print the result information from a result object.