3.4.2.4.1.1.2. statsmodels.emplike.aft_el.AFTResults.ci_beta¶
-
AFTResults.
ci_beta
(param_num, beta_high, beta_low, sig=0.05)[source]¶ Returns the confidence interval for a regression parameter in the AFT model.
- param_num: int
- Parameter number of interest
- beta_high: float
- Upper bound for the confidence interval
- beta_low:
- Lower bound for the confidence interval
- sig: float, optional
- Significance level. Default is .05
If the function returns f(a) and f(b) must have different signs, consider widening the search area by adjusting beta_low and beta_high.
Also note that this process is computational intensive. There are 4 levels of optimization/solving. From outer to inner:
- Solving so that llr-critical value = 0
- maximizing over nuisance parameters
- Using EM at each value of nuisamce parameters
- Using the _modified_Newton optimizer at each iteration of the EM algorithm.
Also, for very unlikely nuisance parameters, it is possible for the EM algorithm to not converge. This is not an indicator that the solver did not find the correct solution. It just means for a specific iteration of the nuisance parameters, the optimizer was unable to converge.
If the user desires to verify the success of the optimization, it is recommended to test the limits using test_beta.