-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added example datasets and documentation for them including citations. * Added datasets and testing. Working on documentation. * Updated data file documentation. * Slightly updated description of metabolic data to not have a copy-paste of lizard size info. * Forgot to change format reference name. * Removed metabolic rate data as it's not set up for DE fitting. * Removed .rd file for metabolic data. * Updated vb model to have a y_max parameter pass in as the initial mean estimate of the maximum value in order to avoid intialisation problems. * Updated example G. recondita data to avoid individuals with <1.5cm growth over observation period. * Replaced G. recondita with H. triandra data because I forgot I need to not double-up on first paper. * Removed vB model as it needs fixing on its own branch. * Removed vb from the switch call in rmot_models.R * Added P. tenufolium small tree data. * Updated documentation of data to have correct sample size. * Forcing update of documentation. * Finally got the documentation to work.
- Loading branch information
1 parent
37693f7
commit c3ccaa8
Showing
26 changed files
with
255 additions
and
2,349 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -61,3 +61,6 @@ src/rmot.dll | |
|
||
# Bugged directory from snapshot package | ||
tests/testthat/_snaps | ||
|
||
# Data prep files | ||
data-raw/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -43,3 +43,4 @@ Suggests: | |
mnormt | ||
VignetteBuilder: knitr | ||
Config/testthat/edition: 3 | ||
LazyData: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,87 @@ | ||
#' SUSTAIN Salmo trutta data | ||
#' | ||
#' A subset of data from the SUSTAIN trout capture-recapture data set | ||
#' from Moe et al. (2020). | ||
#' Data prepared by taking a stratified sample of individual IDs based on the | ||
#' number of observations per individual: 25 individuals with 2 observations, | ||
#' 15 with 3, 10 with 4. Within the groups a simple random sample | ||
#' without replacement was used. Data was then transformed and | ||
#' renamed to match the required structure to act as demonstration for | ||
#' the package. | ||
#' | ||
#' @format ## `Trout_Size_Data` | ||
#' A data frame with 135 rows and 4 columns: | ||
#' \describe{ | ||
#' \item{ind_id}{ID number for individual} | ||
#' \item{time}{Years since first capture and tagging of individual.} | ||
#' \item{y_obs}{Individual length in centimetres.} | ||
#' \item{obs_index}{Index of observations for individual} | ||
#' } | ||
#' @source <https://doi.org/10.3897/BDJ.8.e52157> | ||
"Trout_Size_Data" | ||
|
||
#' Skink size data - Lampropholis delicata | ||
#' | ||
#' A subset of data from Kar, Nakagawa, and Noble (2024), used to model growth | ||
#' behaviour in a skink species. | ||
#' Data was prepared by taking a simple random sample with replacement of 50 | ||
#' individual IDs among individuals with at least 5 observations each. Data was | ||
#' then transformed to conform to the needs of a model data set in the package. | ||
#' | ||
#' @format ## `Lizard_Mass_Data` | ||
#' A data frame with 336 rows and 4 columns: | ||
#' \describe{ | ||
#' \item{ind_id}{ID number for individual} | ||
#' \item{time}{Days since first observation.} | ||
#' \item{y_obs}{Individual mass in kilograms.} | ||
#' \item{obs_index}{Index of observations for individual} | ||
#' } | ||
#' | ||
#' @source \url{https://osf.io/hjkxd/} | ||
"Lizard_Mass_Data" | ||
|
||
#' Protium tenufolium - Barro Colorado Island data | ||
#' | ||
#' A subset of data from the Barro Colorado Island long term forest plot | ||
#' managed by the Smithsonian Tropical Research Institute (Condit et al. 2019). | ||
#' Data was prepared by taking a simple random sample without replacement of | ||
#' 30 individual IDs from Protium tenufolium. | ||
#' The sampling frame was restricted to individuals with individuals under 10cm | ||
#' for the max observed DBH, 6 observations since 1990. Data was then | ||
#' transformed and renamed to match the required structure | ||
#' to act as demonstration for the package. | ||
#' | ||
#' @format ## `Small_Tree_Size_Data` | ||
#' A data frame with 180 rows and 4 columns: | ||
#' \describe{ | ||
#' \item{ind_id}{ID number for individual} | ||
#' \item{time}{Years since first observation.} | ||
#' \item{y_obs}{Individual diameter at breast height (DBH) in centimetres.} | ||
#' \item{obs_index}{Index of observations for individual} | ||
#' } | ||
#' @references \url{https://doi.org/10.1002/ecy.4140} | ||
#' @source \url{https://doi.org/10.15146/5xcp-0d46} | ||
"Small_Tree_Size_Data" | ||
|
||
#' Hirtella triandra - Barro Colorado Island data | ||
#' | ||
#' A subset of data from the Barro Colorado Island long term forest plot | ||
#' managed by the Smithsonian Tropical Research Institute (Condit et al. 2019). | ||
#' Data was prepared by taking a simple random sample without replacement of | ||
#' 30 individual IDs from Hirtella triandra. The sampling frame was restricted | ||
#' to individuals with 6 observations since 1990, and a difference between | ||
#' observed max and min sizes of more than 7cm in order to avoid identifiability | ||
#' issues. Data was then transformed and renamed to match the required structure | ||
#' to act as demonstration for the package. | ||
#' | ||
#' @format ## `Tree_Size_Data` | ||
#' A data frame with 180 rows and 4 columns: | ||
#' \describe{ | ||
#' \item{ind_id}{ID number for individual} | ||
#' \item{time}{Years since first observation.} | ||
#' \item{y_obs}{Individual diameter at breast height (DBH) in centimetres.} | ||
#' \item{obs_index}{Index of observations for individual} | ||
#' } | ||
#' @references \url{https://doi.org/10.1002/ecy.4140} | ||
#' @source \url{https://doi.org/10.15146/5xcp-0d46} | ||
"Tree_Size_Data" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.