An embedded and charset-unspecified text was scrubbed... Name: not available URL: <https://stat.ethz.ch/pipermail/r-sig-hpc/attachments/20101022/5e2e5be5/attachment.pl>
extracting the variance from a covariance matrix
3 messages · Marcelo Lima, Joshua Ulrich, Rick Bilonick
This is a question better suited for R-help than R-sig-hpc. See ?diag. -- Joshua Ulrich ?| ?FOSS Trading: www.fosstrading.com
On Fri, Oct 22, 2010 at 9:31 AM, Marcelo Lima <mlimagb at gmail.com> wrote:
Hi, I generated a covariance matrix, since the diagonal of this matrix represents the variance of my dataset I would like to extract it. Any suggestions on how to obtain? Thanks, Marcelo -- Marcelo Andrade de Lima UNIFESP - Universidade Federal de S?o Paulo Departamento de Bioqu?mica Disciplina de Biologia Molecular Rua Tr?s de Maio 100, 4 andar - Vila Clementino, 04044-020 Lab +55 11 55764438 R.1188 Cell +55 11 92725274 mlima at unifesp.br ? ? ? ?[[alternative HTML version deleted]]
_______________________________________________ R-sig-hpc mailing list R-sig-hpc at r-project.org https://stat.ethz.ch/mailman/listinfo/r-sig-hpc
On Fri, 2010-10-22 at 12:31 -0200, Marcelo Lima wrote:
Hi, I generated a covariance matrix, since the diagonal of this matrix represents the variance of my dataset I would like to extract it. Any suggestions on how to obtain? Thanks, Marcelo ___________
You can use the "diag" function to extract the diagonal.