ps.compute.survival: Compute Survival Objects

Description Usage Arguments Details Value Examples

Description

Compute survival information using the survival package to be used in a response model

Usage

1
2
ps.compute.survival(data, outcome.dates, index.dates,
  obs.end.dates = "OBSEND", death.dates = "DEATHDATE")

Arguments

data

Data frame, containing the dataset to be analyzed

outcome.dates

String, containing the variable name with outcome dates

index.dates

String, containing the variable name for the index dates

obs.end.dates

String, containing the variable name for observation end dates (default = "OBSEND")

death.dates

String, containing the variable name for death dates (default = "DEATHDATE")

Details

This function leverages the survival package Surv function to compute survival information to be used as an outcome variable in outcome analysis. See survival::Surv documentation for more information.

Value

Vector, containing computed survival objects based on the outcome dates specified

Examples

1
2
3
4
## Not run: 
ps.compute.survival(myData, "outcome")

## End(Not run)

OHDSI/Centaur documentation built on May 7, 2019, 8:22 p.m.