Q module
Classes for constructing the variance-covariance matrix for AKM and its bias corrections.
- class pytwoway.Q.Q.CovCovariate(cov_names_1, cov_names_2)
Bases:
object
Generate Q to estimate cov(covariate 1, covariate 2).
- Parameters
cov_names_1 (str or list of str) – covariate name or list of covariate names to sum for first term in covariance
cov_names_2 (str or list of str) – covariate name or list of covariate names to sum for second term in covariance
- name()
Return string representation of covariance to be estimated.
- Returns
string representation of covariance to be estimated
- Return type
(str)
- class pytwoway.Q.Q.CovPsiAlpha
Bases:
object
Generate Q to estimate cov(psi, alpha).
- name()
Return string representation of cov(psi, alpha).
- Returns
string representation of cov(psi, alpha)
- Return type
(str)
- class pytwoway.Q.Q.CovPsiPrevPsiNext
Bases:
object
Generate Q to estimate cov(psi_t, psi_{t+1}).
- name()
Return string representation of cov(psi_t, psi_{t+1}).
- Returns
string representation of cov(psi_t, psi_{t+1})
- Return type
(str)
- class pytwoway.Q.Q.VarAlpha
Bases:
object
Generate Q to estimate var(alpha).
- name()
Return string representation of var(alpha).
- Returns
string representation of var(alpha)
- Return type
(str)
- class pytwoway.Q.Q.VarCovariate(cov_names)
Bases:
object
Generate Q to estimate var(covariate) or var(sum(covariates)) if multiple covariates are listed.
- Parameters
cov_names (str or list of str) – covariate name or list of covariate names to sum
- name()
Return string representation of variance to be estimated.
- Returns
string representation of variance to be estimated
- Return type
(str)