Learn R Programming

cyclomort package

Parametric periodic survival modeling in R

The cyclomort package provides tools for modeling and analysis of periodic mortality (or other time-to event) processes from right-censored data. The package was inspired by the need to detect annual seasonal patterns in mortality of wildlife, thus, the central assumption is that the period itself is known (e.g. 1 year, 24 hours, etc.), but the number, intensity and duration of the peaks of increased hazard are unknown. The central function estimates these parameters from right-censored data. Other functions allow for simulation, visualization of fits, and a priori hypothesis testing tools.

Examples are provided in the package vignette

Also - for fun - a blog post!

To install from GitHub:

library(devtools)
install_github("https://github.com/EliGurarie/cyclomort", vignettes = TRUE)

This project is fairly mature, and will soon be uploaded to CRAN, but GitHub is a good place to report issues for further development.

References

E. Gurarie, P. Thompson, A. Kelly, N. Larter, W. Fagan and K. Joly. 2020. For Everything There is a Season: Estimating periodic hazard functions with the cyclomort R package. Methods in Ecology and Evolution, 11(1):129-139. https://doi.org/10.1111/2041-210X.13305

Copy Link

Version

Install

install.packages('cyclomort')

Monthly Downloads

576

Version

1.0.2

License

GPL (>= 3)

Issues

Pull Requests

Stars

Forks

Maintainer

Eliezer Gurarie

Last Published

August 20th, 2020

Functions in cyclomort (1.0.2)

nwt_morts

Mortality data for Northwest territory boreal woodland caribou.
summary.cmfitlist

Summary method for cmfitlist objects
timetoeventprediction

Example fitted time to event prediction
select_seasons

Select the number of mortality seasons
simulate_cycloSurv

Simulate periodic mortality process
plot.cmfit

Plot cmfit objects
plot.cmfactorfit

Plot cmfactorfit objects
summary.cmfactorfit

Summary method for cyclomort factorial fit
predict.cmfit

Prediction method for cyclomort fits
summary.cmfit

Provide a short summary of cmfit (parameter estimates for periodic mortality curves) objects
seasonalsex

Simulated data of seasonal mortality data for two sex groups
wc

Wrapped Cauchy and Integrated Wrapped Cauchy functions
wah_morts

Mortality data for Western Arctic Herd Caribou
loglike_optim

Log-likelihood function
create_cycloSurv

Create a cycloSurv object
censor_cycloSurv

Censor and Trim
loglike

Obtain log-likelihood value from a data set given a set of parameter values
guess_initial_parameters

Produce initial parameter estimates based on mortality data
cyclomort-package

Cyclomort: periodic survival modeling
factorfit_cyclomort

Factorial analysis of seasonal survival models
findDelta

Converting between Rho to Delta
fit_cyclomort

Estimate periodic hazard function.