Re: [R] Correlation Matrix

From: sayan dasgupta <kittudg_at_gmail.com>
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: http://r.789695.n4.nabble.com/Correlation-Matrix-tp2250826p2251274.html
Sent from the R help mailing list archive at Nabble.com.

______________________________________________
R-help_at_r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
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 https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive