Skip to content

how to calculate a variance and covariance matrix for a vector

9 messages · Jorge I Velez, R. Michael Weylandt, Doran, Harold +2 more

#
On Mon, Mar 12, 2012 at 11:42 AM, huang jialin <huangpsych at gmail.com> wrote:
What does this mean? Is this a character vector giving names of
objects that exist elsewhere in the workspace? Else, how do you tell
a/b1/b2 apart in a vector?

You probably want ?cov but applying it is going to depend on the shape
of your data.

Michael
Plain text please.
#
Can you provide sample data? This suggests that a and b1, for example, are scalars. If that is what you actually have then you cannot produce a covariance between two scalars.