Commit bfcd4708 authored by mabrook's avatar mabrook
Browse files

updating data and readme

parent 606d71d6
...@@ -15,8 +15,9 @@ You can install the package from Bitbucket ...@@ -15,8 +15,9 @@ You can install the package from Bitbucket
```{r setup, include=FALSE, warning=FALSE} ```{r setup, include=FALSE, warning=FALSE}
knitr::opts_chunk$set(echo = TRUE) knitr::opts_chunk$set(echo = TRUE)
library("devtools") library("devtools")
devtools::install_bitbucket("levintow/actg") devtools::install_bitbucket("novisci/actg")
library(actg) library(actg)
library(knitr)
``` ```
```{r, eval=FALSE} ```{r, eval=FALSE}
...@@ -43,6 +44,10 @@ knitr::opts_chunk$set(echo = TRUE) ...@@ -43,6 +44,10 @@ knitr::opts_chunk$set(echo = TRUE)
* C1: time of censoring due to drop-out * C1: time of censoring due to drop-out
* C2: time of censoring not due to drop-out * C2: time of censoring not due to drop-out
```{r, eval=TRUE}
actg[1:20,]
```
### Notes ### ### Notes ###
* There is one record per patient in the dataset. * There is one record per patient in the dataset.
......
...@@ -47,6 +47,53 @@ You can install the package from Bitbucket ...@@ -47,6 +47,53 @@ You can install the package from Bitbucket
- C1: time of censoring due to drop-out - C1: time of censoring due to drop-out
- C2: time of censoring not due to drop-out - C2: time of censoring not due to drop-out
<!-- -->
actg[1:20,]
## id idu art r age karnof days cd4 stop Y C1 C2 art_f
## 1 10333 0 0 1 40 90 132 95 29 NA 132 NA Dual therapy
## 2 10350 0 1 0 51 90 139 185 NA NA NA 139 Triple therapy
## 3 10491 1 0 1 63 90 363 180 NA NA NA 363 Dual therapy
## 4 10719 0 0 1 31 100 113 52 78 113 NA NA Dual therapy
## 5 11158 0 0 1 40 90 229 189 NA NA NA 229 Dual therapy
## 6 11656 0 1 0 49 90 350 120 NA NA NA 350 Triple therapy
## 7 11760 1 1 0 43 80 340 60 NA NA NA 340 Triple therapy
## 8 11767 0 1 0 43 90 356 85 NA NA NA 356 Triple therapy
## 9 11796 0 1 1 45 80 308 10 50 NA 308 NA Triple therapy
## 10 11806 0 0 1 49 80 355 40 196 NA NA 355 Dual therapy
## 11 11851 0 0 1 39 100 306 20 186 NA NA 306 Dual therapy
## 12 11884 0 0 1 46 90 343 12 167 NA NA 343 Dual therapy
## 13 11898 0 1 0 31 100 278 151 NA NA NA 278 Triple therapy
## 14 11899 0 0 1 26 100 332 75 159 NA NA 332 Dual therapy
## 15 11900 1 0 1 34 100 336 97 170 NA NA 336 Dual therapy
## 16 11901 0 0 1 43 90 332 31 NA NA NA 332 Dual therapy
## 17 11902 0 0 1 34 90 334 52 NA NA NA 334 Dual therapy
## 18 11904 0 1 1 38 90 280 3 NA NA NA 280 Triple therapy
## 19 11905 0 0 1 32 100 280 113 NA NA NA 280 Dual therapy
## 20 11921 0 0 1 41 80 271 15 NA NA NA 271 Dual therapy
## race sex
## 1 White Male
## 2 White Male
## 3 White Male
## 4 White Male
## 5 Hispanic Female
## 6 White Male
## 7 White Male
## 8 Black Male
## 9 White Male
## 10 White Female
## 11 Black Male
## 12 White Male
## 13 Black Male
## 14 White Male
## 15 White Male
## 16 Black Male
## 17 White Male
## 18 White Male
## 19 Black Male
## 20 White Male
### Notes ### Notes
- There is one record per patient in the dataset. - There is one record per patient in the dataset.
......
...@@ -43,6 +43,8 @@ actg$male <- NULL ...@@ -43,6 +43,8 @@ actg$male <- NULL
actg$hispanic <- NULL actg$hispanic <- NULL
actg$black <- NULL actg$black <- NULL
actg = as.tibble(actg)
# Save R data set in the actg package # Save R data set in the actg package
devtools::use_data(actg,overwrite = TRUE) devtools::use_data(actg,overwrite = TRUE)
No preview for this file type
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment