statsmodels.stats.oaxaca.OaxacaBlinder.variance#
- OaxacaBlinder.variance(decomp_type, n=5000, conf=0.99)[source]#
A helper function to calculate the variance/std
Used to keep the decomposition functions cleaner.
- Parameters:
- decomp_type
int The type of decomposition being bootstrapped. Use 2 for the two-fold decomposition or 3 for the three-fold decomposition.
- n
int,optional The number of bootstrap iterations to use to calculate the standard errors. This defaults to 5000, but is overridden by
self.submitted_nwhen it is not None.- conf
float,optional The confidence level used when trimming the bootstrap distribution before computing the standard deviation. This defaults to 0.99, but is overridden by
self.submitted_confwhen it is not None.
- decomp_type
- Returns: