Description Usage Arguments Details Value Examples
Reformat a data frame into a CohortMethodData object for use with OHDSI package
1 2 | ps.getCohortMethodData(data, outcomes, covariates, treat.name = "treat",
person.id.name = "PERSON_ID")
|
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") |
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.
CohortMethodData - reformatted data object
1 2 3 4 | ## Not run:
ps.getCohortMethodData(myData)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.