output_print {konfound} | R Documentation |
Output printed text with formatting
Description
This function outputs printed text for various indices such as RIR (Robustness of Inference to Replacement) and IT (Impact Threshold for a Confounding Variable) with specific formatting like bold, underline, and italic using functions from the crayon package. It handles different scenarios based on the effect difference, beta threshold, and other parameters, providing formatted output for each case.
Usage
output_print(
eff_diff,
beta_threshhold,
bias = NULL,
sustain = NULL,
nu,
recase,
obs_r,
critical_r,
r_con,
itcv,
alpha,
index
)
Arguments
eff_diff |
The difference in the effect size being evaluated. |
beta_threshhold |
The threshold value of beta, used for statistical significance determination. |
bias |
The percentage of the estimate that could be due to bias (optional). |
sustain |
The percentage of the estimate necessary to sustain an inference (optional). |
nu |
The hypothesized effect size used in replacement analysis. |
recase |
The number of cases that need to be replaced to change the inference. |
obs_r |
The observed correlation coefficient in the data. |
critical_r |
The critical correlation coefficient for statistical significance. |
r_con |
The correlation coefficient of an omitted variable with both the outcome and the predictor. |
itcv |
The impact threshold for a confounding variable. |
alpha |
The level of statistical significance. |
index |
A character string indicating the index for which the output is generated ('RIR' or 'IT'). |