rolling_var {PheVis}R Documentation

rolling_var

Description

Compute rolling variables (last visit, last 5 visits, last month and last year)

Usage

rolling_var(id, var, start_date, id_encounter)

Arguments

id

Patient id numeric vector

var

Variable numeric vector

start_date

Time numeric vector

id_encounter

Encounter id vector

Value

A dataframe containing the rolling variables.


[Package PheVis version 1.0.4 Index]