Lastvisit: Last observation before censoring

Description Usage Arguments Details Value

Description

Lastvisit gets the last observation before censoring at the user specified day limit.

Usage

1
Lastvisit(x, limit)

Arguments

x

An ordered vector of observed visits.

limit

The maximum number of days that can pass before the subject is censored.

Details

This code assumes that the date vector is already in order and will return the last visit date before the specified number of days have passed.

Value

Lastvisit returns the last observed visit prior to being censored.


tranlm/lrecImpact documentation built on May 31, 2019, 7:45 p.m.