boxcoxfitRx {reportRmd} | R Documentation |
fit box cox transformed linear model
Description
Wrapper function to fit fine and gray competing risk model using function crr from package cmprsk
Usage
boxcoxfitRx(f, data, lambda = FALSE)
Arguments
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. |
Value
a list containing the linear model (lm) object and, if requested, lambda
[Package reportRmd version 0.1.0 Index]