Re: [R] elements from 'sem' function

From: John Fox <jfox_at_mcmaster.ca>
Date: Wed 08 Feb 2006 - 07:22:06 EST


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@stat.math.ethz.ch
> [mailto:r-help-bounces@stat.math.ethz.ch] On Behalf Of andre
> tavares correa dias
> Sent: Tuesday, February 07, 2006 12:28 PM
> To: r-help@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@biologia.ufrj.br
>
> ______________________________________________
> R-help@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



R-help@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 Received on Wed Feb 08 07:30:38 2006

This archive was generated by hypermail 2.1.8 : Wed 08 Feb 2006 - 23:31:33 EST