Learn R Programming

eesim (version 0.1.0)

Simulate and Evaluate Time Series for Environmental Epidemiology

Description

Provides functions to create simulated time series of environmental exposures (e.g., temperature, air pollution) and health outcomes for use in power analysis and simulation studies in environmental epidemiology. This package also provides functions to evaluate the results of simulation studies based on these simulated time series. This work was supported by a grant from the National Institute of Environmental Health Sciences (R00ES022631) and a fellowship from the Colorado State University Programs for Research and Scholarly Excellence.

Copy Link

Version

Install

install.packages('eesim')

Monthly Downloads

281

Version

0.1.0

License

GPL (>= 2)

Issues

Pull Requests

Stars

Forks

Maintainer

Brooke Anderson

Last Published

June 3rd, 2017

Functions in eesim (0.1.0)

check_sims

Assess model performance
continuous_exposure

Simulate continuous exposure data
calc_t

Create a continuous exposure trend vector
calendar_plot

Create calendar plot
coverage_beta

Empirical coverage of confidence intervals
coverage_plot

Plot coverage of empirical confidence intervals
beta_bias

Percent Bias of Estimated Coefficient
beta_var

Standard Deviation of Estimated Coefficients
bin_t

Create a binary exposure trend vector
binary_exposure

Simulate binary exposure data
custom_exposure

Pull exposure series from data set
eesim

Simulate data, fit models, and assess models
power_calc

Power Calculations
sim_baseline

Expected baseline health outcomes
fit_mods

Fit a model to simulated datasets
format_out

Format output for custom model to use in eesim
mean_beta

Average Estimated Coefficient
power_beta

Estimate power
create_sims

Create simulated data for many repetitions
custom_baseline

Pull smoothed Chicago NMMAPS health outcome data
spline_mod

Fit a generalized linear model
std_exposure

Simulate exposure data using default methods
create_baseline

Create a series of baseline outcomes
create_lambda

Create a series of mean outcome values
sim_exposure

Simulate time series of exposure values
sim_outcome

Simulate outcome