Question

How can I use R to compute a pooled sample covariance matrix and it's inverse? I...

How can I use R to compute a pooled sample covariance matrix and it's inverse? I am using the Bumpus Sparrows data set.

Homework Answers

Answer #1

To compute the pooled sample covariance matrix in R following steps are required to be done:

i) Install the package "Morpho" using the install.packages("Morpho") command

ii) Include the library of Morpho package in R using library("Morpho")

iii) use the command covW(data,group) to get the pooled sample covariance matrix where data is the required data file and group is the grouping variables. Let us name this matrix as P.

To find the inverse of the matrix only 1 command is required and it is solve(P)

so covW(P) gives you the required pooled sample covariance matrix and using solve command on that gives you the inverse.

Hope this helps.

Know the answer?
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for?
Ask your own homework help question
Similar Questions
Develop the Widrow-Hopf equation. what method can be used to estimate the inverse covariance matrix ?
Develop the Widrow-Hopf equation. what method can be used to estimate the inverse covariance matrix ?
Covariance matrix I want to make a covariance matrix with the following variables: AGG, VAW, IWN,...
Covariance matrix I want to make a covariance matrix with the following variables: AGG, VAW, IWN, SPY, EWG and EWW. I found the covariance of the variables in r with this code: cov(wr[ ,c("AGG","VAW","IWN","SPY","EWG","EWW")]) Here's the result: AGG VAW IWN SPY AGG 3.571068e-05 -4.260068e-05 -2.587826e-05 -3.239567e-05 VAW -4.260068e-05 1.301973e-03 9.838237e-04 7.927169e-04 IWN -2.587826e-05 9.838237e-04 1.024990e-03 7.221941e-04 SPY -3.239567e-05 7.927169e-04 7.221941e-04 6.143463e-04 EWG -5.084499e-05 1.109888e-03 9.502014e-04 8.046398e-04 EWW -3.710732e-05 1.184849e-03 1.010141e-03 8.152602e-04 EWG EWW AGG -5.084499e-05 -3.710732e-05 VAW 1.109888e-03 1.184849e-03 IWN...
Can i make conclusions about m x n matrix with rank r with (n-r) values and...
Can i make conclusions about m x n matrix with rank r with (n-r) values and it's solution number? Is there any other relations between rank of a matrix and avalaible solutions?
Using elementary transformations, determine matrices B and C so that BAC=I for the matrix A. Use...
Using elementary transformations, determine matrices B and C so that BAC=I for the matrix A. Use B and C to compute the inverse of A; that is, take the inverse of both sides of the equation BAC=I and then solve for A inverse. I need to find Matrix B, Matrix C, and Inverse of matrix A A= 1   2   1   1 0   1   2   0 1   2   2   1 0   -1 1   2
How do I compute Covariance and coefficent of correlation by hand?
How do I compute Covariance and coefficent of correlation by hand?
how can I calculate the confidence interval and it's coefficient from a data set?? also using...
how can I calculate the confidence interval and it's coefficient from a data set?? also using excel thank you.
How can I use R to enter a data set, along with the probability for each...
How can I use R to enter a data set, along with the probability for each data point, and find the expected values for each?
How can I think about matrix entries in a general sense? I a looking for a...
How can I think about matrix entries in a general sense? I a looking for a much deeper analysis than “systems of equations.” For instance, I know that when it is a rotation matrix, I know that the column vectors in the matrix, R, will be where the basis vectors land, and hence it will rotate any given vector accordingly. (is this correct in a general sense, as far as rotation matrices go?) However, for a general linear transformation, I...
Compute the sample correlation coefficient r for each of the following data sets and show that...
Compute the sample correlation coefficient r for each of the following data sets and show that r is the same for both. (Use 3 decimal places.) (i) x 3 4 9 y 3 3 5 (ii) x 3 3 5 y 3 4 9 r (i) (ii)
Compute the sample correlation coefficient r for each of the following data sets and show that...
Compute the sample correlation coefficient r for each of the following data sets and show that r is the same for both. (Use 3 decimal places. (i) x 8 6 9 y 3 4 5 (ii) x   3 4 5 y 8 6 9 r (i)= (ii)=