boxcoxfitRx | R Documentation |
Wrapper function to fit fine and gray competing risk model using function crr from package cmprsk
boxcoxfitRx(f, data, lambda = FALSE)
f |
formula for the model. Currently the formula only works by using the name of the column in a dataframe. It does not work by using $ or [] notation. |
data |
dataframe containing data |
lambda |
boolean indicating if you want to output the lamda used in the boxcox transformation. If so the function will return a list of length 2 with the model as the first element and a vector of length 2 as the second. |
a list containing the linear model (lm) object and, if requested, lambda
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.