calculate_diagnostics {tidyhte} | R Documentation |
Calculate diagnostics
Description
This function calculates the diagnostics requested by the Diagnostics_cfg
object.
Usage
calculate_diagnostics(data, treatment, outcome, .diag.cfg)
Arguments
data |
Data frame with all additional columns (such as model predictions) included. |
treatment |
Unquoted treatment variable name |
outcome |
Unquoted outcome variable name |
.diag.cfg |
|
Value
Returns a tibble with columns:
-
estimand
- Character indicating the diagnostic that was calculated -
level
- Indicates the scope of this diagnostic (e.g. does it apply only to the model of the outcome under treatment). -
term
- Indicates a more granular descriptor of what the value is for, such as the specific model within the SuperLearner ensemble. -
estimate
- Point estimate of the diagnostic. -
std_error
- Standard error of the diagnostic.
See Also
[Package tidyhte version 1.0.2 Index]