Learn R Programming

prodlim (version 1.4.5)

parseSpecialNames: Parse special terms

Description

Extract from a vector of character strings the names of special functions and auxiliary arguments

Usage

parseSpecialNames(x, specials, specialArgumentNames)

Arguments

x
Vector of character strings, usually the column names of the design matrix obtained with model.design.
specials
A vector with character strings providing the names of the special arguments.
specialArgumentNames
A named list with one element for each special of argument

Value

  • List with two elements: the name and

Details

The names of the special functions may not be nested, i.e., c(treat, treatment) will not work.

See Also

model.design

Examples

Run this code
parseSpecialNames("treat(Z)",specials="treat")
parseSpecialNames("treat(Z,u=2)",specials="treat",specialArgumentNames=list("treat"="u"))

Run the code above in your browser using DataLab