
Extract confidence intervals of a pif object
confint.Rd
Gets the confidence interval for the potential impact fraction
Examples
my_pif <- pif(p = 0.5, p_cft = 0.25, beta = 1.3, var_p = 0.1, var_beta = 0.2)
#Default 95% CI
confint(my_pif)
#> [1] -0.1882459 0.2646147
#Custom 90% ci:
confint(my_pif, level = 0.90)
#> [1] -0.1432847 0.2356948