Skip to content

Commit

Permalink
Fixed documentation to fit CRAN's policies, 'ready' for submission to…
Browse files Browse the repository at this point in the history
… CRAN.
  • Loading branch information
gaballench committed May 22, 2024
1 parent 90f0e09 commit 5db3f15
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 9 deletions.
6 changes: 3 additions & 3 deletions DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Package: tbea
Title: Tools for Pre- and Post-processing in Bayesian Evolutionary Analyses
Version: 1.4.1
Authors@R: c(person("Gustavo A.", "Ballen", email = "gaballench@gmail.com", role = c("aut", "cre")),
Title: Tools for Pre- and Post-Processing in Bayesian Evolutionary Analyses
Version: 1.4.2
Authors@R: c(person("Gustavo A.", "Ballen", email = "gustavo.a.ballen@gmail.com", role = c("aut", "cre")),
person("Sandra", "Reinales", email = "spreinalesl@gmail.com", role = c("aut")))
Description: Package for bayesian inference in phylogenetics and evolution.
It provides functions for prior specification in divergence time
Expand Down
5 changes: 2 additions & 3 deletions R/xintercept.R
Original file line number Diff line number Diff line change
Expand Up @@ -39,16 +39,15 @@
#' ages <- ages[complete.cases(ages)] # remove NAs
#' ages <- ages[which(ages < 10)] # remove outliers
#'
#' \dontrun{
#' # Draper-Smith, OLS
#' draperSmithNormalX0 <- xintercept(x = ages, method = "Draper-Smith", alpha = 0.05, robust = FALSE)
#' # Draper-Smith, Robust fit
#' draperSmithRobustX0 <-xintercept(x = ages, method = "Draper-Smith", alpha = 0.05, robust = TRUE)
#' draperSmithRobustX0 <- xintercept(x = ages, method = "Draper-Smith", alpha = 0.05, robust = TRUE)
#' # Bootstrap, OLS
#' bootstrapNormalX0 <- xintercept(x = ages, method = "Bootstrap", p = c(0.025, 0.975), robust = FALSE)
#' # Bootstrap, Robust fit
#' bootstrapRobustX0 <- xintercept(x = ages, method = "Bootstrap", p = c(0.025, 0.975), robust = TRUE)
#'
#' \donttest{
#' # plot the estimations
#' hist(ages, probability = TRUE, col = rgb(red = 0, green = 0, blue = 1, alpha = 0.3),
#' xlim = c(0, 10), main = "CDF-based on confidence intervals", xlab = "Age (Ma)")
Expand Down
5 changes: 2 additions & 3 deletions man/xintercept.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 5db3f15

Please sign in to comment.