Count the events per estimated parameter of a survival model and compare
the count with a floor. The floor of 10 is a heuristic from simulations of
the Cox model (Peduzzi et al. 1995), not a guarantee: below it the
coefficients were biased and their standard errors inaccurate in those
simulations.
survestimand() attaches the result to every fit and warns when a model
falls below the floor.
Arguments
- formula
A model formula with a
survival::Surv()response.- data
A data frame.
- min_epv
Numeric events-per-variable floor (default
10).- cause
For a multi-state response, the level of the event whose events are counted.
survestimand()passes thecauseof afine_grayfit.
Value
A list: n, n_events, n_predictors, events_per_variable,
min_epv, underpowered (logical), verdict ("ok" / "underpowered" /
"unknown") and advice.
Details
The event count comes from the last column of the survival::Surv() response.
For a multi-state response (competing risks) it is the number of events of
cause; without cause the count is not defined and the verdict is
"unknown". For a
counting-process response (recurrent events) the count is the
number of event rows, not the number of distinct subjects.
The predictor count is the number of parameters the right-hand side asks
the model to estimate: the columns of the fixed-effect model matrix, so a
factor with k levels counts k - 1 and an interaction counts its columns, plus
one variance for each random-effect term ((1 | g) counts one). strata() and
cluster() terms estimate no coefficient and are not counted. A penalised
spline counts its basis columns, not its effective degrees of freedom.
References
Peduzzi P, Concato J, Feinstein AR, Holford TR. Importance of events per independent variable in proportional hazards regression analysis II. Accuracy and precision of regression estimates. Journal of Clinical Epidemiology 1995; 48(12): 1503-1510. doi:10.1016/0895-4356(95)00048-8
See also
survestimand(), which runs this gate on every fit.
Other model-fitting:
is_sest_refusal(),
sest_cuminc(),
sest_ic(),
sest_refusal(),
sest_rmst(),
sest_score(),
sest_stack(),
survestimand()
