finalizeSqlCyclopsData
finalizes a Cyclops data object
finalizeSqlCyclopsData(
object,
addIntercept = FALSE,
useOffsetCovariate = NULL,
offsetAlreadyOnLogScale = FALSE,
sortCovariates = FALSE,
makeCovariatesDense = NULL
)
Cyclops data object
Add an intercept covariate if one was not imported through SQL
Specify is a covariate should be used as an offset (fixed coefficient = 1).
Set option to -1
to specify the time-to-event column,
otherwise include a single numeric or character covariate name.
Set to TRUE
to indicate that offsets were log-transformed before importing into Cyclops data object.
Sort covariates in numeric-order with intercept first if it exists.
List of numeric or character covariates names to densely represent in Cyclops data object. For efficiency, we suggest making at least the intercept dense.