Skip to content

statnet/CAMP.10yr.pregnancy

Repository files navigation

Data and code for the manuscript:

Goodreau SM, Pollock ED, Wang LY, Li J, Aslam MV, Katz DA, Hamilton DT, Rosenberg ES. 2022. Declines in pregnancies among US adolescents from 2007 to 2017: behavioral contributors to the trend, Journal of Pediatric and Adolescent Gynecology, doi: https://doi.org/10.1016/j.jpag.2022.07.008

Instructions:

  1. Open RStudio.
  2. Obtain the CAMP.10.yr.pregnancy project by selecting File>NewProject>Version Control>Git and entering https://github.com/statnet/CAMP.10yr.pregnancy.git for the Repository URL. (Set the directory name and subdirectory as desired given your local file setup).
  3. Build the package by clicking Build>Install>Clean and Install.
  4. Open the file scripts/a10_preg_entire_project.R
  5. Edit the first line of code (line 9) to use the appropriate path on your machine, ending with the directory CAMP.10yr.pregnancy/scripts.
  6. Install any needed R packages (listed in lines 12-17 of the script) not currently on your machine by copying the relevant line without the comment marker # into your RStudio window.
  7. Source or run the script file.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published