Description Usage Arguments Value See Also Examples
Get index by specifying cut points. Assigns index 1 to lower than the first cut point, 2 to larger than the first cut point but lower than the second cut point, and so on. This function is intended to be used for time dependent covariate in Cox regression models to select covariate according to time point. In this case, cut points is a vector of time points, and index is used to select time-specific covariate.
1 2 |
variable |
a numeric value or vector to be converted into index. |
cutpoints |
a numeric vector specifying cut point values. |
toLowerCategory |
a logical value specifying which to assign a cut point to lower category or upper category index. The default is assigning to lower category. |
checkOrder |
a logical value specifying whether to check the order of cut points. Checking the order is skipped by default. |
an index vector.
1 2 3 4 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.