knitr::opts_chunk$set(echo = TRUE, message = FALSE, warning = FALSE)
library(ggplot2)

PMerc

Pariculate Matter (PM) Exposure-Response Curves (ERCs)

This R provides a lean set of code for computing specific values from an exposure-response curve developed using the bercs R package. This package contains two elements:

To install PMerc, use the following commands:

devtools::install_github("jpkeller/PMerc")

Example: PM-ALRI Curve Values

library(PMerc)
library(splines2)

data(nepal_pm_alri)

compute_OR2(
    expsequence = c(35, 37.5, 50, 75, 100, 150, 200, 400),
    ref_exposure=50,
    ciband=0.95,
    beta_post=nepal_pm_alri$posterior_params$beta,
    bs_post=nepal_pm_alri$posterior_params$bS,
    xdf=nepal_pm_alri$model_data$xdf,
    nS=nepal_pm_alri$model_data$S,
    Mx=nepal_pm_alri$model_data$Mx,
    Mx_attributes = nepal_pm_alri$model_data$Mx_attributes)

Community guidelines

If you have a bug to report, are having technical issues, or want to recommend features, please open a Github Issue.



jpkeller/PMerc documentation built on Sept. 11, 2020, 12:27 a.m.