Skip to content

Commit c0bc58c

Browse files
authored
Biostat updates (#79)
* dds.discr fix * cdc data fixes * danish fix * remaining fixes
1 parent d547632 commit c0bc58c

18 files changed

Lines changed: 37 additions & 34 deletions

R/data-cdc.R

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@
22
#'
33
#' A dataset from the 2000 Behavioral Risk Factors Surveillance System (BRFSS)
44
#' conducted by the US Centers for Disease Control and Prevention used to
5-
#' illustrate inference on demographic data.
5+
#' illustrate inference on demographic data. The dataset is a random sample of 20,000
6+
#' participants drawn from 350,000 interviews from that year.
67
#'
78
#' @name cdc
89
#' @docType data
@@ -22,6 +23,6 @@
2223
#' \item{\code{age}}{Numeric; respondent's age in years.}
2324
#' \item{\code{gender}}{Factor with two levels \code{m} \code{f}}
2425
#' }
25-
#' @source("https://www.cdc.gov/brfss/index.html")
26+
#' @source \url{https://www.cdc.gov/brfss/index.html}
2627
#'
2728
"cdc"

R/data-cdc.samp.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,6 @@
2121
#' \item{\code{age}}{Numeric; respondent's age in years.}
2222
#' \item{\code{gender}}{Factor with two levels \code{m} \code{f}}
2323
#' }
24-
#' @source("http://www.openintro.org/stat/data/cdc.R")
24+
#' @source \url{http://www.openintro.org/stat/data/cdc.R}
2525
#'
2626
"cdc.samp"

R/data-danish.ed.primary.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@
4646
#' \item{\code{icu.status}}{factor, patient admitted to ICU, values \code{yes},
4747
#' \code{no}}
4848
#' }
49-
#' #' @references Kristensen, Michael, et al. "Routine blood tests are associated
49+
#' @references Kristensen, Michael, et al. "Routine blood tests are associated
5050
#' with short term mortality and can improve emergency department triage: a cohort
5151
#' study of> 12,000 patients." Scandinavian Journal of Trauma, Resuscitation and
5252
#' Emergency Medicine 25 (2017): 1-8.
Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
#' protect the rights and privacy of specific individual consumers. The provided
1111
#' data set is based on actual attributes of consumers."
1212
#'
13-
#' @name dds.dscr
13+
#' @name dds.discr
1414
#' @docType data
1515
#' @format A dataframe with 1000 rows and 6 variables:
1616
#' \describe{
@@ -27,10 +27,9 @@
2727
#' \code{Multi Race}, \code{Native Hawaiian}, \code{Other},
2828
#' \code{White not Hispanic}}
2929
#' }
30-
#' #' @references www.amstat.org/publications/jse/v22n1/mickel.pdf Taylor, Stanley A.,
31-
#' and Amy E. Mickel. Simpson's paradox: A data set and discrimination case study
32-
#' exercise. Journal of Statistics Education 22.1 (2014).
33-
#' Data contained in supplement B of Taylor and Mickel.
30+
#' @references Taylor, Stanley A., and Amy E. Mickel. Simpson's paradox: A data
31+
#' set and discrimination case study exercise. Journal of Statistics Education
32+
#' 22.1 (2014). Data contained in supplement B of Taylor and Mickel.
3433
#'
3534
"dds.discr"
3635

R/data-forest.birds.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,6 @@
3535
#' Saunders DA, Arnold GW, Burbridge AA, and Hopkins AJM eds. Surrey Beatty and Sons,
3636
#' Chipping Norton, NSW, 65-77, 1987. Logan, M 2011 Biostatistical Design and
3737
#' Analysis Using R. Wiley-Blackwell, Chapter 9
38-
#' @source https://users.monash.edu.au/~murray/BDAR/ Listed under chapter 9 datasets
38+
#' @source \url{https://users.monash.edu.au/~murray/BDAR/} Listed under chapter 9 datasets
3939
#'
4040
"forest.birds"

R/data-prevend.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@
6262
#' \item{\code{Match_2}}{Numeric, statin users and non-users matched 1:1 on Framingham risk score.
6363
#' Matched pairs share a common integer label. -1 indicates participant not matched}
6464
#' }
65-
#' @references{https://journals.plos.org/plosone/article?id=10.1371/journal.pone.0115755}
65+
#' @references \url{https://journals.plos.org/plosone/article?id=10.1371/journal.pone.0115755}
6666
#' @source \url{http://doi.org/10.5061/dryad.6qs53}
6767

6868
"prevend"

R/data-prevend.samp.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@
5959
#' \item{\code{Match_2}}{Numeric, statin users and non-users matched 1:1 on Framingham risk score.
6060
#' Matched pairs share a common integer label. -1 indicates participant not matched}
6161
#' }
62-
#' @references{https://journals.plos.org/plosone/article?id=10.1371/journal.pone.0115755}
62+
#' @references \url{https://journals.plos.org/plosone/article?id=10.1371/journal.pone.0115755}
6363
#' @source \url{http://doi.org/10.5061/dryad.6qs53}
6464
#'
6565
"prevend.samp"

R/data-swim.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
#' \item{\code{velocity.diff}}{Numeric, \code{wet.suit.velocity
2222
#' - swim.suit.velocity}}
2323
#' }
24-
#' #' @source \url{https://doi.org/10.1016/S1440-2440(00)80042-0}
24+
#' @source \url{https://doi.org/10.1016/S1440-2440(00)80042-0}
2525
#' @references Table 3 of De Lucas, Ricardo Dantas, et al. The effects of wet
2626
#' suits on physiological and biomechanical indices during swimming.
2727
#' Journal of Science and Medicine in Sport 3.1 (2000): 1-8.

R/data-thermometry.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
#' \code{female}, \code{male}}
1515
#' \item{\code{heart.rate}}{Numeric, heart rate, in beats per minute}
1616
#' }
17-
#' @source{http://jse.amstat.org/v4n2/datasets.shoemaker.html}
17+
#' @source \url{http://jse.amstat.org/v4n2/datasets.shoemaker.html}
1818
#' @references Mackowiak, P. A., Wasserman, S. S., and Levine, M. M. (1992),
1919
#' A Critical Appraisal of 98.6 Degrees F, the Upper Limit of the
2020
#' Normal Body Temperature, and Other Legacies of Carl Reinhold August Wunderlich,

man/cdc.Rd

Lines changed: 3 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)