make.ipd | R Documentation |
Piles in the simulated IPD resulting from running digitise for more than one treatment arm
make.ipd(ipd_files, ctr = 1, var.labs = c("time", "event", "arm"))
ipd_files |
a list including the names of the IPD files created as output of digitise |
ctr |
the index of the file associated with the control arm (default, the first file). This will be coded as 0 |
var.labs |
a vector of labels for the column of the resulting data matrix. NB these should match the arguments to the formula specified for fit.models. The user can specify values. These should be 4 elements (ID, TIME, EVENT, ARM) |
Gianluca Baio
Something will go here
Something will go here
## Not run:
# Defines the txt files to be used as inputs
surv.inp <- system.file("extdata", "survival.txt", package = "survHE")
nrisk.inp <- system.file("extdata", "nrisk.txt", package = "survHE")
# Runs 'digitise' to create the relevant output files
digitise(surv.inp, nrisk.inp, ipd_output = "IPD.txt")
# Now uses 'make.ipd' to create the pseudo-data
make.ipd("IPD.txt", ctr = 1, var.labs = c("time", "event", "arm"))
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.