Is there a convenient way to get a pairwise covariance matrix in Stata?
Is there anything out there, short of calculating it "by hand," that would return the pairwise covariance matrix.
(BTW I do know that pairwise covariance matrices are often a bad idea, and in fact my goal here is to conduct a simulation that would show that clearly.)
corr x y z, covreturns a listwise covariance matrix, and
pwcorr x yzreturns a pairwise correlation matrix, but
pwcorr x y z, covreturns an error because pwcorr doesn't have a cov option, though corr does.
Is there anything out there, short of calculating it "by hand," that would return the pairwise covariance matrix.
(BTW I do know that pairwise covariance matrices are often a bad idea, and in fact my goal here is to conduct a simulation that would show that clearly.)
Comment