[R] elements from 'sem' function
John Fox
jfox at mcmaster.ca
Tue Feb 7 21:22:06 CET 2006
Dear André,
The components of the "sem" object returned by sem() are explained on the
help page ?sem. There are several methods for "sem" objects:
> methods(class="sem")
[1] mod.indices.sem* normalized.residuals.sem*
[3] path.diagram.sem* print.sem*
[5] residuals.sem* standardized.residuals.sem*
[7] summary.sem*
To retrieve components of the object directly, just use, e.g., object$C (for
the reproduced covariance matrix), or object$coeff (for estimates of free
parameters), in the normal manner for indexing a list. It would probably be
better for me to provide accessor functions [e.g., for the coef() generic]
for at least some of these, so I'll put that on the list of things to do.
I hope this helps,
John
--------------------------------
John Fox
Department of Sociology
McMaster University
Hamilton, Ontario
Canada L8S 4M4
905-525-9140x23604
http://socserv.mcmaster.ca/jfox
--------------------------------
> -----Original Message-----
> From: r-help-bounces at stat.math.ethz.ch
> [mailto:r-help-bounces at stat.math.ethz.ch] On Behalf Of andre
> tavares correa dias
> Sent: Tuesday, February 07, 2006 12:28 PM
> To: r-help at stat.math.ethz.ch
> Subject: [R] elements from 'sem' function
>
> Hi,
> I would like to print elements from sem (structural equation
> modeling) function (e.g., model-reproduced covariance matrix
> (C); estimated asymptotic covariance matrix of parameter
> estimates (cov)).
>
> How can I do this?
>
> Thanks,
> André
>
> --
> André Tavares Corrêa Dias
> Laboratório de Ecologia Vegetal
> Universidade Federal do Rio de Janeiro
> CCS-IB-Departamento de Ecologia
> Caixa Postal 68020
> 21941-970 Rio de Janeiro RJ, Brazil
> tel: +55 21 25626377
> Fax: + 55 21 25626320
> atcdias at biologia.ufrj.br
>
> ______________________________________________
> R-help at stat.math.ethz.ch mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide!
> http://www.R-project.org/posting-guide.html
More information about the R-help
mailing list