Re: [R] Correlation Matrix

From: sayan dasgupta <>
Date: Thu, 10 Jun 2010 21:56:23 -0700 (PDT)

Hi ,

 you can try using cov2cor(vcov(lm(calorie~height))) to get the correlation matrix of estimated coefficients

boltonboy999 wrote:
> Hi everyone,
> This is pretty urgent so if anyone can help that would be great.
> I have a table of information. The categories are weight, height,
> calories and skinfold. There are 20 entries. I have had to carry out
> linear regressions of calories on height, weight and on height and weight.
> I have done this using the lm(calorie~height) function etc.
> This has given me the 't' values I needed to proove significance etc.
> Now I am trying to find the correlation matrix of estimated coefficients.
> Can anyone tell me how to do this?
> Thanks in advance

View this message in context:
Sent from the R help mailing list archive at

______________________________________________ mailing list
PLEASE do read the posting guide
and provide commented, minimal, self-contained, reproducible code.
Received on Fri 11 Jun 2010 - 05:39:40 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Fri 11 Jun 2010 - 05:40:29 GMT.

Mailing list information is available at Please read the posting guide before posting to the list.

list of date sections of archive