The goal of ExtinctModels is to build an extension to the sExtinct-package (by Christopher Clements c.clements@outlook.com) , adding new equations, and new tools to use these models in a different spatial scale. In the last term, add environmental variables. This package is in the first steps. Expecting to be developed in the next year.
You can not install the released version of ExtinctModels from CRAN with:
install.packages("ExtinctModels")
And the development version from GitHub with:
# install.packages("devtools")
devtools::install_github("Clara-Casabona/ExtinctModels")
This is a basic example which shows you how to solve a common problem:
library(ExtinctModels)
## basic example code
sightingdata <- data.frame(year= c(1903, 1905, 1907, 1910, 1915, 1917), sightings = c(1,2,1,1,2,1))
OLE(sightingdata, 0.05)
#> $Estimate
#> [1] 1922.01
#>
#> $lowerCI
#> [1] 1917.472
#>
#> $upperCI
#> [1] 1956.335
#>
#> attr(,"class")
#> [1] "extmod"
#> attr(,"row.names")
#> [1] 1
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.