Description Usage Arguments Details Value Examples
Compute survival information using the survival package to be used in a response model
1 2 | ps.compute.survival(data, outcome.dates, index.dates,
obs.end.dates = "OBSEND", death.dates = "DEATHDATE")
|
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") |
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.
Vector, containing computed survival objects based on the outcome dates specified
1 2 3 4 | ## Not run:
ps.compute.survival(myData, "outcome")
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.