Skip to content

Commit c7f1a08

Browse files
committed
Add badges and resources to README
1 parent 6c5b0a3 commit c7f1a08

File tree

4 files changed

+154
-28
lines changed

4 files changed

+154
-28
lines changed

README.Rmd

Lines changed: 25 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
---
2-
output:
3-
md_document:
4-
variant: markdown_github
2+
output: github_document
3+
always_allow_html: yes
4+
bibliography: [vignettes/bibliography.bib]
5+
biblio-style: apalike
6+
link-citations: yes
57
---
68

79
<!-- README.md is generated from README.Rmd. Please edit that file -->
@@ -16,6 +18,11 @@ knitr::opts_chunk$set(
1618

1719
# brokenstick
1820

21+
<!-- badges: start -->
22+
[![Lifecycle: maturing](https://img.shields.io/badge/lifecycle-maturing-blue.svg)](https://www.tidyverse.org/lifecycle/#maturing)
23+
[![](https://img.shields.io/badge/github%20version-0.72.0-orange.svg)](https://github.com/stefvanbuuren/brokenstick)
24+
<!-- badges: end -->
25+
1926
The broken stick model describes a set of individual curves by a linear mixed model using first order linear B-splines. The main use of the model is to align irregularly observed data to a user-specified grid of break ages.
2027

2128
All fitting can done in the Z-score scale, so nonlinearities and irregular data can be treated as separate problems. This package contains functions for fitting a broken stick model to data, for exporting the parameters of the model for independent use outside this package, and for predicting broken stick curves for new data.
@@ -69,3 +76,18 @@ Function name | Description
6976
`brokenstick()` | Fit a broken stick model to irregular data
7077
`predict()` | Predict broken stick estimates
7178
`plot()` | Plot observed and fitted trajectories
79+
80+
## Resources
81+
82+
### Background
83+
84+
1. The name *broken stick* comes from @ruppert2003, page 59-61.
85+
2. As far as I know, @dekroon2010 is the first publication that uses the broken stick model without the intercept in a mixed modelling context. See [The Terneuzen birth cohort: BMI changes between 2 and 6 years correlate strongest with adult overweight](https://stefvanbuuren.name/publications/2010%20TBC%20Overweight%20-%20PLoS%20ONE.pdf).
86+
3. The model was formally defined and extended in [Flexible Imputation of Missing Data (second edition)](https://stefvanbuuren.name/fimd/sec-rastering.html#sec:brokenstick). See @vanbuuren2018.
87+
4. The evaluation by @anderson2019 concluded: "We recommend the use of the brokenstick model with standardised Z‐score data. Aside from the accuracy of the fit, another key advantage of the brokenstick model is that it is easier to fit and provides easily interpretable estimates of child growth trajectories."
88+
89+
### Tutorials
90+
91+
The [companion site](https://stefvanbuuren.name/brokenstick/) contains various articles that explain the model and the use of the software.
92+
93+
### References

README.md

Lines changed: 93 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,14 @@
1+
12
<!-- README.md is generated from README.Rmd. Please edit that file -->
2-
brokenstick
3-
===========
3+
4+
# brokenstick
5+
6+
<!-- badges: start -->
7+
8+
[![Lifecycle:
9+
maturing](https://img.shields.io/badge/lifecycle-maturing-blue.svg)](https://www.tidyverse.org/lifecycle/#maturing)
10+
[![](https://img.shields.io/badge/github%20version-0.72.0-orange.svg)](https://github.com/stefvanbuuren/brokenstick)
11+
<!-- badges: end -->
412

513
The broken stick model describes a set of individual curves by a linear
614
mixed model using first order linear B-splines. The main use of the
@@ -13,8 +21,7 @@ contains functions for fitting a broken stick model to data, for
1321
exporting the parameters of the model for independent use outside this
1422
package, and for predicting broken stick curves for new data.
1523

16-
Installation
17-
------------
24+
## Installation
1825

1926
The `brokenstick` package can be installed from GitHub as follows:
2027

@@ -25,18 +32,17 @@ remotes::install_github("stefvanbuuren/brokenstick")
2532

2633
There is currently no CRAN version.
2734

28-
Overview
29-
--------
35+
## Overview
3036

3137
The *broken stick model* describes a set of individual curves by a
3238
linear mixed model using first order linear B-splines. The model can be
3339
used
3440

35-
- to smooth growth curves by a series of connected straight lines;
36-
- to align irregularly observed curves to a common age grid;
37-
- to create synthetic curves at a user-specified set of break ages;
38-
- to estimate the time-to-time correlation matrix;
39-
- to predict future observations.
41+
- to smooth growth curves by a series of connected straight lines;
42+
- to align irregularly observed curves to a common age grid;
43+
- to create synthetic curves at a user-specified set of break ages;
44+
- to estimate the time-to-time correlation matrix;
45+
- to predict future observations.
4046

4147
The user specifies a set of break ages at which the straight lines
4248
connect. Each individual obtains an estimate at each break age, so the
@@ -45,37 +51,101 @@ observed trajectory.
4551

4652
The main assumptions of the broken stick model are:
4753

48-
- The development between the break ages follows a straight line, and
54+
- The development between the break ages follows a straight line, and
4955
is generally not of particular interest;
50-
- Broken stick estimates follow a common multivariate normal
56+
- Broken stick estimates follow a common multivariate normal
5157
distribution;
5258

5359
In order to conform to the assumption of multivariate normality, the
5460
user may fit the broken stick model on suitably transformed data that
55-
yield the standard normal (*Z*) scale. Unique feature of the broken
61+
yield the standard normal (\(Z\)) scale. Unique feature of the broken
5662
stick model are:
5763

58-
- *Modular*: Issues related to nonlinearities of the growth curves in
64+
- *Modular*: Issues related to nonlinearities of the growth curves in
5965
the observed scale can be treated separately, i.e., outside the
6066
broken stick model;
61-
- *Local*: A given data point will contribute only to the estimates
67+
- *Local*: A given data point will contribute only to the estimates
6268
corresponding to the closest break ages;
63-
- *Exportable*: The broken stick model can be exported and reused for
69+
- *Exportable*: The broken stick model can be exported and reused for
6470
prediction for new data in alternative computing environments.
6571

6672
The `brokenstick` package contains functions for
6773

68-
- Fitting the broken stick model to data,
69-
- Plotting individual trajectories,
70-
- Predicting broken stick estimates for new data.
74+
- Fitting the broken stick model to data,
75+
- Plotting individual trajectories,
76+
- Predicting broken stick estimates for new data.
7177

72-
Main functions
73-
--------------
78+
## Main functions
7479

7580
The main functions in the `brokenstick` package are:
7681

7782
| Function name | Description |
78-
|-----------------|--------------------------------------------|
83+
| --------------- | ------------------------------------------ |
7984
| `brokenstick()` | Fit a broken stick model to irregular data |
8085
| `predict()` | Predict broken stick estimates |
8186
| `plot()` | Plot observed and fitted trajectories |
87+
88+
## Resources
89+
90+
### Background
91+
92+
1. The name *broken stick* comes from Ruppert, Wand, and Carroll
93+
([2003](#ref-ruppert2003)), page 59-61.
94+
2. As far as I know, Kroon et al. ([2010](#ref-dekroon2010)) is the
95+
first publication that uses the broken stick model without the
96+
intercept in a mixed modelling context. See [The Terneuzen birth
97+
cohort: BMI changes between 2 and 6 years correlate strongest with
98+
adult
99+
overweight](https://stefvanbuuren.name/publications/2010%20TBC%20Overweight%20-%20PLoS%20ONE.pdf).
100+
3. The model was formally defined and extended in [Flexible Imputation
101+
of Missing Data (second
102+
edition)](https://stefvanbuuren.name/fimd/sec-rastering.html#sec:brokenstick).
103+
See Buuren ([2018](#ref-vanbuuren2018)).
104+
4. The evaluation by Anderson et al. ([2019](#ref-anderson2019))
105+
concluded: “We recommend the use of the brokenstick model with
106+
standardised Z‐score data. Aside from the accuracy of the fit,
107+
another key advantage of the brokenstick model is that it is easier
108+
to fit and provides easily interpretable estimates of child growth
109+
trajectories.”
110+
111+
### Tutorials
112+
113+
The [companion site](https://stefvanbuuren.name/brokenstick/) contains
114+
various articles that explain the model and the use of the software.
115+
116+
### References
117+
118+
<div id="refs" class="references">
119+
120+
<div id="ref-anderson2019">
121+
122+
Anderson, C., R. Hafen, O. Sofrygin, L. Ryan, and HBGDki Community.
123+
2019. “Comparing Predictive Abilities of Longitudinal Child Growth
124+
Models.” *Statistics in Medicine* 38 (19): 3555–70.
125+
126+
</div>
127+
128+
<div id="ref-vanbuuren2018">
129+
130+
Buuren, S. van. 2018. *Flexible Imputation of Missing Data. Second
131+
Edition*. Boca Raton, FL.: CRC Press.
132+
133+
</div>
134+
135+
<div id="ref-dekroon2010">
136+
137+
Kroon, M.L.A. de, C.M. Renders, J.P. van Wouwe, S. van Buuren, and R.A.
138+
Hirasing. 2010. “The Terneuzen Birth Cohort: BMI Changes Between 2 and 6
139+
Years Correlate Strongest with Adult Overweight.” *PloS ONE* 5 (2):
140+
e9155.
141+
142+
</div>
143+
144+
<div id="ref-ruppert2003">
145+
146+
Ruppert, D., M. P. Wand, and R. J. Carroll. 2003. *Semiparametric
147+
Regression*. Cambridge: Cambridge University Press.
148+
149+
</div>
150+
151+
</div>

inst/CITATION

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,12 @@ bibentry(
55
title = "{brokenstick}: Broken Stick Model for Irregular Longitudinal Data",
66
author = personList(person("Stef", "van Buuren")),
77
journal = "GitHub repository",
8-
year = "2017",
8+
year = "2020",
99
publisher = "GitHub",
1010
url = "https://github.com/stefvanbuuren/brokenstick")
1111

1212
textVersion =
13-
paste("Stef van Buuren (2017).",
13+
paste("Stef van Buuren (2020).",
1414
"brokenstick: Broken Stick Model for Irregular Longitudinal Data",
1515
"GitHub repository",
1616
"URL http://github.com/stefvanbuuren/brokenstick")

vignettes/bibliography.bib

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,3 +94,37 @@ @Book{ruppert2003
9494
abstract = {},
9595
keywords = {}}
9696

97+
@Article{dekroon2010,
98+
author = {de Kroon, M.L.A. and Renders, C.M. and van Wouwe, J.P. and van Buuren, S. and Hirasing, R.A.},
99+
title = {The Terneuzen birth cohort: BMI changes between 2 and 6 years correlate strongest with adult overweight},
100+
journal = {PloS ONE},
101+
volume = {5},
102+
number = {2},
103+
pages = {e9155},
104+
year = {2010},
105+
abstract = {},
106+
location = {},
107+
keywords = {}}
108+
109+
@Article{anderson2019,
110+
author = {Anderson, C. and Hafen, R. and Sofrygin, O. and Ryan, L. and Community, HBGDki},
111+
title = {Comparing predictive abilities of longitudinal child growth models},
112+
journal = {Statistics in medicine},
113+
volume = {38},
114+
number = {19},
115+
pages = {3555--3570},
116+
year = {2019},
117+
location = {},
118+
keywords = {}}
119+
120+
@Book{vanbuuren2018,
121+
author = {van Buuren, S.},
122+
title = {Flexible Imputation of Missing Data. Second Edition},
123+
volume = {},
124+
pages = {},
125+
editor = {},
126+
publisher = {CRC Press},
127+
address = {Boca Raton, FL.},
128+
year = {2018},
129+
abstract = {},
130+
keywords = {}}

0 commit comments

Comments
 (0)