Hi,
Let's say I have n variables, named a, b, c, ...,z (where z is the last variable in the list) and for each of these I calculate, e.g. variances and covariances. I store these as scalars, named as follows:
cov_a_a (variance of a)
cov_a_b (covariance between a and b)
cov_b_c (covariance between b and c)
and so on. Given that I have these stored as scalars, what is the easiest way of creating a variance-covariance matrix ? Suppose for argument's sake that I have to do it this way (i.e. I cannot just use correlate varlist, covariance)
Let's say I have n variables, named a, b, c, ...,z (where z is the last variable in the list) and for each of these I calculate, e.g. variances and covariances. I store these as scalars, named as follows:
cov_a_a (variance of a)
cov_a_b (covariance between a and b)
cov_b_c (covariance between b and c)
and so on. Given that I have these stored as scalars, what is the easiest way of creating a variance-covariance matrix ? Suppose for argument's sake that I have to do it this way (i.e. I cannot just use correlate varlist, covariance)
Comment