This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ## Requires library eppasm | |
| dpsub <- function(dp, tag, rows, cols, tagcol = 1) { | |
| dp[which(dp[, tagcol] == tag) + rows, cols] | |
| } | |
| read_frr_fit_input <- function(pjnz) { | |
| dp <- eppasm::read_dp(pjnz) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| library(dplyr) | |
| library(brio) | |
| library(readr) | |
| library(first90) # remotes::install_github("mrc-ide/first90release") | |
| #' ## Define functions | |
| get_pjnz_shiny90_filename <- function (pjnz) { | |
| files <- utils::unzip(pjnz, list = TRUE)$Name |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| library(dplyr) | |
| library(readr) | |
| library(tidyr) | |
| library(forcats) | |
| library(haven) | |
| library(survey) | |
| ## devtools::install_github("jeffeaton/svyincid") | |
| library(svyincid) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| library(dplyr) | |
| library(readr) | |
| library(tidyr) | |
| library(forcats) | |
| library(haven) | |
| library(survey) | |
| phia_path <- "~/Data/household surveys/PHIA/datasets" | |
| cmr2017phia <- rdhs::read_zipdata(file.path(phia_path, "CMR/datasets/302 CAMPHIA 2017-2018 Adult Biomarker Dataset (DTA).zip")) |
OlderNewer