Description Usage Arguments Details Value
This function is used for building a summary list of the covariates in a data.frame object. It has to be used before
using coxSimulate in order to generate new dataset with given baseline hazards and a set of coefficients set for a given outcome.
1 | extractFeatures(dataset, breaks = 20)
|
dataset |
A |
breaks |
Numnber of |
times |
Numeric vector of observation times or death in the dataset |
status |
Numeric vector of censored |
When a simulation of new Cox dataset is performed according the features of a given dataset a pre-analysis of the
dataset has to be performed by using this function. The result given by extractFeatures can be directly put in coxSimulate
function to achieve a new dataset similar to the one that gave the model used for coeff, cov and BH arguments.
An object of class features with following structure:
classes. A character vector with names of classes of each covariate.
prop. A list of table objects for integer and factor covaraites, or hist objects for numeric covariates.
numCases. The total number of cases in the dataset.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.