ps.getCohortMethodData: Cohort Method Data

Description Usage Arguments Details Value Examples

Description

Reformat a data frame into a CohortMethodData object for use with OHDSI package

Usage

1
2
ps.getCohortMethodData(data, outcomes, covariates, treat.name = "treat",
  person.id.name = "PERSON_ID")

Arguments

data

Data Frame - containing the dataset to reformat.

outcomes

- outcome vector, or list of outcome vectors to include in data object. For TTE outcomes, include event times (NA for no event), for dichtomous data include 1/0 indicator

covariates

Vector of covariate names to include in the data object

treat.name

Name of the treatment indicator [0,1] variable (default "treat")

person.id.name

Name of the subject id variable (default "PERSON_ID")

Details

This function takes a data frame containing an observational study dataset and reformats into an object of type CohortMethodData that can be used with the OHDSI CohortMethod library.

Value

CohortMethodData - reformatted data object

Examples

1
2
3
4
## Not run: 
ps.getCohortMethodData(myData)

## End(Not run)

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