This repository contains the data and code for our paper:
Lanfear, Charles C. and Ross L. Matsueda, (2018). A Dynamic Intrafamily Model of Child Behavior Problems and Birth Timing.
Please cite this compendium as:
Lanfear, Charles C. and Ross L. Matsueda. (2019). Compendium of R code and data for ‘A Dynamic Intrafamily Model of Child Behavior Problems and Birth Timing’. Accessed 21 Feb 2019.
To access the paper directly, follow this link.
To access the related presentation, follow this link.
You can download the compendium as a zip from from this URL: </archive/master.zip>
Or you can install this compendium as an R package, birthtiming, from GitHub with:
# install.packages("devtools")
devtools::install_github("clanfear/birthtiming")
This repository is organized as an R package. There are functions in
this package, but they are only intended to be run within the .Rmd
file that generates the article.
To generate the article from the birthtiming
library, you may either:
- Open and knit the
.Rmd
file found atbirthtiming/paper/paper.Rmd/
in your R libraries. - Clone this github repository and load the
.Rproj
file in RStudio, then knit the paper fron ininst/paper/paper.Rmd
- Run
birthtiming::build_birthtiming()
to knit the paper then open the paper directory withbirthtiming::open_paper_dir()
and open the file.
In all cases, that directory will already contain a compiled version of the article current to the last commit to this repository.
Text and figures : CC-BY-4.0
Code : See the DESCRIPTION file
Data : CC-0 attribution requested in reuse
We welcome contributions from everyone. Before you get started, please see our contributor guidelines. Please note that this project is released with a Contributor Code of Conduct. By participating in this project you agree to abide by its terms.