Coefficient method for objects of class "gformula"
Coefficient method for objects of class "gformula"
This function extracts the coefficients of the fitted models for the time-varying covariates, outcome, and compevent event (if applicable).
## S3 method for class 'gformula'coef(object,...)
Arguments
object: Object of class "gformula".
...: Other arguments.
Returns
If bootdiag was set to FALSE in gformula, this function returns a list of the coefficients of the fitted models to the observed data set. If bootstrapping was used and bootdiag was set to TRUE in gformula, this function returns a list described as follows. The first element (named 'Original sample') is a list of the coefficients of the fitted models to the observed data set. The kth element (named 'Bootstrap sample k-1') is a list of the coefficients of the fitted models corresponding to the k-1th bootstrap sample.