-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathREADME.Rmd
75 lines (45 loc) · 2.82 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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
---
title: "KidSIDES"
output: github_document
---
<!-- badges: start -->
[![pkgdown](https://github.com/ngiangre/kidsides/actions/workflows/pkgdown.yaml/badge.svg)](https://github.com/ngiangre/kidsides/actions/workflows/pkgdown.yaml)
[![R-CMD-check](https://github.com/ngiangre/kidsides/actions/workflows/R-CMD-check.yaml/badge.svg)](https://github.com/ngiangre/kidsides/actions/workflows/R-CMD-check.yaml)
[![Codecov test coverage](https://codecov.io/gh/ngiangre/kidsides/branch/main/graph/badge.svg)](https://app.codecov.io/gh/ngiangre/kidsides?branch=main)
[![CRAN status](https://www.r-pkg.org/badges/version/kidsides)](https://CRAN.R-project.org/package=kidsides)
<!-- badges: end -->
```{r setup, include=FALSE}
knitr::opts_chunk$set(echo = TRUE)
```
This R data package contains observation, summary, and model-level data from pediatric drug safety research developed by Nicholas Giangreco for his PhD dissertation in the Tatonetti lab at Columbia University.
# Installation
**The database is downloaded after consent is given when using the package. Installing the package will not download the database, but it will make it easier to download and connect to the database from your R session.**
```{r,eval=FALSE}
install.packages('kidsides')
remotes::install_github("ngiangre/kidsides")
```
# Summary
The database is comprised of 17 tables including a table with descriptions of the fields in each table. The main table, `ade_nichd`, contains quantitative data from nearly 500,000 pediatric drug safety signals across 7 child development stages spanning from birth through late adolescence (21 years of age).
The database was created using the methods and analyses in the references.
This data resource can be used under the [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) license agreement.
**See the `Overview` vignette for more details on the data and the online portal**
# Usage
```{r}
library(kidsides)
kidsides::download_sqlite_db(force=TRUE)
con <- kidsides::connect_sqlite_db()
DBI::dbListTables(con)
library(dplyr)
dplyr::tbl(con,"dictionary") %>%
dplyr::collect()
dplyr::tbl(con,"ade_nichd") %>%
dplyr::collect()
dplyr::tbl(con,"ade") %>%
dplyr::collect()
dplyr::tbl(con,"ade_raw") %>%
dplyr::collect()
kidsides::disconnect_sqlite_db(con)
```
# References
Giangreco, Nicholas. Mind the developmental gap: Identifying adverse drug effects across childhood to evaluate biological mechanisms from growth and development. 2022. Columbia University, [PhD dissertation](https://doi.org/10.7916/d8-5d9b-6738).
Giangreco NP, Tatonetti NP. A database of pediatric drug effects to evaluate ontogenic mechanisms from child growth and development. Med (N Y). 2022 Aug 12;3(8):579-595.e7. [doi: 10.1016/j.medj.2022.06.001](https://doi.org/10.1016/j.medj.2022.06.001). Epub 2022 Jun 24. PMID: 35752163; PMCID: PMC9378670.