ustat_var.ustat_samp_covar.vcv_samp_covar_XXXY
- ustat_var.ustat_samp_covar.vcv_samp_covar_XXXY(Xtmp, Ytmp, w=None)
Estimates sampling \(Cov(Var(a^X), Cov(a^X,a^Y))\). Equivalent to calling ustat_samp_covar(X,X,X,Y), except faster due to fewer required underlying function calls.
- Parameters:
Xtmp (array) – J-by-\(\operatorname{max}(T_j)\) array containing data/residuals for outcome X
Ytmp (array) – J-by-\(\operatorname{max}(T_j)\) array containing data/residuals for outcome Y
w (array) – Row-wise/teacher-level weights (optional). If included, must have the same number of elements as rows of A, D, and must be 1-dimensional (e.g. one weight per teacher/row).
- Returns:
a float representing the sampling covariance \(Cov(Var(a^X), Cov(a^X, a^Y))\).
- Return type:
float