
Estimate the (very rough) time to run SEQuential analysis on current machine
Source:R/SEQestimate.R
SEQestimate.RdEstimate the (very rough) time to run SEQuential analysis on current machine
Arguments
- data
data.frame or data.table, if not already expanded with
SEQexpand(), will perform expansion according to arguments passed to eitherparamsor...- id.col
String: column name of the id column
- time.col
String: column name of the time column
- eligible.col
String: column name of the eligibility column
- treatment.col
String: column name of the treatment column
- outcome.col
String: column name of the outcome column
- time_varying.cols
List: column names for time varying columns
- fixed.cols
List: column names for fixed columns
- method
String: method of analysis to perform
- options
List: optional list of parameters from
SEQopts()- verbose
Logical: if
TRUE, cats progress to console, default isTRUE
Value
A list of (very rough) estimates for the time required for SEQuential containing:
modelTimeestimated time used when running modelsexpansionTimeestimated time used when expanding datatotalTimesum of model and expansion time
Details
This is a rough heuristic only. Empirically its predictions land
within roughly a factor of two of observed run time, and the direction of
the error depends on the configuration (e.g. it can over- or under-estimate
as followup.max changes), so the result should be treated as an
order-of-magnitude guide rather than a reliable timing.