NamFact: NamFact

Description Usage Arguments Value Examples

View source: R/NamFact.R

Description

This function returns the list of factor names (after possible converting categorical variables to multiple binary ones as well)

Usage

1
NamFact(data, formula.scale, formula.shape)

Arguments

data

A data.frame in which to interpret the variables named in the formula. The data set includes the following fields:

  1. Time-to-failure and censoring in the case without left truncation or time-of-start, time-of-failure, and censoring in the case with left truncation at the time of begin; Censoring must be either 0 (no event) or 1 (event);

  2. Covariates (continuous or categorical) used in a study (can be empty set).

formula.scale

A formula object, with the response on the left of a ~ operator, and the terms on the right. The response must be a survival object as returned by the Surv() function. The status indicator 'event' in the Surv object must be 0=censored, 1=non-censored. This object describes the effect of several factors in the Cox proportional hazards model.

formula.shape

A formula object, with the response on the left of a ~ operator, and the terms on the right. The response must be a survival object as returned by the Surv() function. The status indicator 'event' in the Surv object must be 0=censored, 1=non-censored. This object describes the effect of several factors on the shape parameter.

Value

List of the factor names

Examples

1
2
3
4
## Not run: 
NamFact(data, formula.scale, formula.shape)

## End(Not run)

AB5103/doubleCoxr documentation built on Feb. 20, 2022, 2:20 p.m.