extractFeatures: Function for extracting summary of covariates in a...

Description Usage Arguments Details Value

Description

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.

Usage

1
extractFeatures(dataset, breaks = 20)

Arguments

dataset

A data.frame object

breaks

Numnber of breaks in the hist objects that returns the summary of numeric covariates

times

Numeric vector of observation times or death in the dataset

status

Numeric vector of censored (0) or event (1) cases in the dataset

Details

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.

Value

An object of class features with following structure:


kbolab/distrcox documentation built on May 20, 2019, 8:10 a.m.