Structural Equation Modeling in R: Can it be done in SPSS?

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Structural Equation Modeling in R: Can it be done in SPSS?

Jims More
I wonder if SEM in R can be done in SPSS via R syntax.


Need a Holiday? Win a $10,000 Holiday of your choice. Enter now..
Reply | Threaded
Open this post in threaded view
|

Re: Structural Equation Modeling in R: Can it be done in SPSS?

Peck, Jon

Any R package available for the R version supported by your SPSS version (2.7 with v17) can be run within SPSS via an R program.

It might look like

begin program r.

library(the-package-name)

dta = spssdata.GetDataFromSPSS(your-variable-list)

code-to-call-the-function-and-print-results

end program.

 

There is an R package named sem.  Its description says

 

This package contains functions for fitting general linear structural equation models (with observed and unobserved variables) by the method of maximum likelihood using the RAM approach, and for fitting structural equations in observed-variable models by two-stage least squares.

 

HTH,

Jon Peck

 

 


From: SPSSX(r) Discussion [mailto:[hidden email]] On Behalf Of Jims More
Sent: Friday, May 15, 2009 8:48 PM
To: [hidden email]
Subject: [SPSSX-L] Structural Equation Modeling in R: Can it be done in SPSS?

 

I wonder if SEM in R can be done in SPSS via R syntax.

 


Need a Holiday? Win a $10,000 Holiday of your choice. Enter now..