makePropRes | R Documentation |
Makes a variable of the proportion of time that a participant spent as a resident in the PIP surveillance arear by year.
makePropRes(Args)
Args |
requires Args, see |
data.frame
dat <- setEpisodes(setArgs())
adat <- makePropRes(setArgs())
dat <- dplyr::left_join(dat, adat, by=c("IIntID", "Year"))
dplyr::select(dat, IIntID, Year, ExpDays, Resident, PropRes)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.