-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathREADME.Rmd
62 lines (43 loc) · 1.77 KB
/
README.Rmd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
---
output: github_document
---
<!-- README.md is generated from README.Rmd. Please edit that file -->
```{r, include = FALSE}
knitr::opts_chunk$set(
collapse = TRUE,
comment = "#>",
fig.path = "man/figures/README-",
out.width = "100%"
)
```
# centile
<!-- badges: start -->
[](https://www.tidyverse.org/lifecycle/#experimental)
[](https://CRAN.R-project.org/package=centile)
[](https://github.com/growthcharts/centile/actions/workflows/R-CMD-check.yaml)
<!-- badges: end -->
The `centile` package
- Defines the reference interchange format (RIF), a simple text format for exchanging growth references;
- Provides tools for reading and validating RIF files;
- Names and loads references as `R` objects;
- Converts between measurements, Z-scores and centiles;
- Contains built-in WHO Multicentre Growth Standard for height, weight, head circumference and body mass index.
The currently supported distributions are normal (`NO`), Lambda-Mu-Sigma (`LMS`),
Box-Cox Green Cole (`BCCG`), Box-Cox Power Exponential (`BCPE`) and Box-Cox t
(`BCT`).
## Installation
You can install the development version of `centile` with:
``` r
remotes::install_github("growthcharts/centile")
```
## Examples
Generate a reference table for the WHO Multicentre Growth Standard for weight of boys aged 0-5 years:
```{r}
library(centile)
calculate_centile_table(x = 0:5, z = -2:2, refcode = "who_2006_wgt_male_")
```
We obtain percentiles as follows:
```{r}
library(centile)
calculate_centile_table(x = 0:5, p = c(10, 50, 90), refcode = "who_2006_wgt_male_")
```