ustat_var.makec.makec_spec
- ustat_var.makec.makec_spec(X, w=None)
Generates C-weights for U-statistic estimator in special case when X = Y.
- Parameters:
X (array) – J-by-\(\operatorname{max}(T_j)\) array containing data/residuals for outcome X
w (array) – J-by-1 array containing row-wise/teacher-level weights (optional).
- Returns:
First array contains C-weights for specific teachers (i.e. weight when \(j(i) = j(k)\)), and second element contains array of cross-term C-weights (i.e. weight when \(j(i) \neq j(k)\))
- Return type:
list of ndarray