makePropRes: Makes a variable of the proportion of time that a participant...

View source: R/getEpisodes.R

makePropResR Documentation

Makes a variable of the proportion of time that a participant spent as a resident in the PIP surveillance area by year.

Description

Makes a variable of the proportion of time that a participant spent as a resident in the PIP surveillance arear by year.

Usage

makePropRes(Args)

Arguments

Args

requires Args, see setArgs.

Value

data.frame

Examples

dat <- setEpisodes(setArgs()) 
adat <- makePropRes(setArgs())
dat <- dplyr::left_join(dat, adat, by=c("IIntID", "Year"))
dplyr::select(dat, IIntID, Year, ExpDays, Resident, PropRes)

vando026/ahri documentation built on Aug. 10, 2024, 3:20 p.m.