A gift from Heaven
Thanks God I found Peun.
Aug 15
Structural Equation Model (SEM) was first examined by a software called LISREL. Then, SEM has been mainly run by several proprietary software i.e., Mplus, AMOS, EQS, SAS and a new version of Stata (v.12).
However, you may also run SEM with a great but free software like R.
To the best of my knowledge, there are now four active packages that you can use to fit SEM. Here they are:
Today (30 May 2012), I gladly found that there are also complementary packages for SEM in R as follows.
Aug 11
Finally, in the light of the greater contribution, this website will be a part of one of the largest R websites, R-Bloggers.com after following this site for a while.
For those who are using R or interested in this great but free software, R-Bloggers.com is a must!
A sneak peek of the result of a Structural Equation Model using sem package in R.
I will present in the R User Conference in Warwick next week, is reveal first here.
The following are the codes of ‘sem’ package I used in the paper.
You may also view the code of other packages to run SEM models as well.
##-------------------------------------------------##
## Measuring Transaction Cost in Supply Chains ##
## Pairach Piboonrungroj ##
## R useR conference August 2011 ##
##-------------------------------------------------##
install.packages("sem")
library(sem)
# 1. Load data
hoteldata <- read.csv("http://dl.dropbox.com/u/46344142/useR2011/cleandata.csv")
#Input covariance matrix
data.tc.1 <- cor(hoteldata)
# Have a look at the top of the data
# to check it we import the right one
head(data.tc.1)
#Create an object contains correlation matrix of the data for fitting the model in the next step
hotel.cor <- cor(hoteldata)
# path parameter start-value
model.TC.1 <- specify.model()
TC -> TC1, gamma1, NA # measurement item
TC -> TC2, gamma2, NA
TC -> TC3, gamma3, NA
TC -> TC6, gamma6, NA
TC -> TC7, gamma7, NA
TC -> TC11, gamma11, NA
TC -> TC13, gamma13, NA
TC1 <-> TC1, e1, NA # measurement error
TC2 <-> TC2, e2, NA
TC3 <-> TC3, e3, NA
TC6 <-> TC6, e6, NA
TC7 <-> TC7, e7, NA
TC11 <-> TC11, e11, NA
TC13 <-> TC13, e13, NA
TC <-> TC, NA, 1
model.TC.1
sem.TC.1 <- sem(model.TC.1, data.tc.1, 53)
# print result (fit indices, parameters, hypothesis tests)
summary(sem.TC.1)
# standardised coefficients (loadings)
std.coef(sem.TC.1)
ขอเชิญร่วมฟังบรรยายพิเศษเนื่องในโอกาสครบรอบ ๔๘ ปี วันสถาปนา
คณะเศรษฐศาสตร์ มหาวิทยาลัยเชียงใหม่
**พร้อมรับของที่ระลึกสำหรับผู้ลงทะเบียนเข้าฟัง!!
หน่วยบริการวิชาการ ขอเชิญท่านร่วมฟังบรรยายพิเศษเนื่องในโอกาสครบรอบ ๔๘ ปี วันสถาปนาคณะเศรษฐศาสตร์ มหาวิทยาลัยเชียงใหม่
วันอาทิตย์ที่ ๒๘ สิงหาคม ๒๕๕๔
ณ ห้องประชุมใหญ่ คณะเศรษฐศาสตร์ มหาวิทยาลัยเชียงใหม่
กำหนดการ
—————————————————————–
เวลา ๑๒.๓๐ น.
เริ่มลงทะเบียน พร้อมรับ Handy drive ที่ระลึกงานครบรอบ ๔๘ ปี วันสถาปนาคณะเศรษฐศาสตร์ (ของมีจำนวนจำกัดสำหรับผู้ลงทะเบียนเข้าฟังเท่านั้น!)
เวลา ๑๓.๐๐ น.
พิธีเปิดการบรรยายทางวิชาการ โดยคณบดีคณะเศรษฐศาสตร์ ดร.พิสิฐ ลี้อาธรรม
เวลา ๑๓.๓๐ น.
การบรรยายพิเศษ หัวข้อ “อนาคตของมาบตาพุด” โดย ดร. ศิริ จิระพงษ์พันธ์ ผู้อำนวยการสถาบันปิโตรเลียมแห่งประเทศไทย
เวลา ๑๔.๓๐ น.
การบรรยายพิเศษ หัวข้อ “การปรับเปลี่ยนองค์การธุรกิจ” โดย คุณบวร วงศ์สินอุดม ประธานเจ้าหน้าที่บริหารและกรรมการผู้จัดการใหญ่ บริษัท ปตท. อะโรเมติกส์ และการกลั่น จำกัด (มหาชน)
เวลา ๑๕.๓๐ น.
การเสวนาทางวิชาการหัวข้อ “การปรับเปลี่ยนของธนาคารไทย” โดย ดร. พิสิฐ ลี้อาธรรม คณบดีคณะเศรษฐศาสตร์, คุณสรสิทธิ์ สุนทรเกศ รองผู้ว่าการสายกำกับสถาบันการเงิน ธนาคารแห่งประเทศไทย และคุณอุดมศักดิ์ เล่ห์หลีกภัย
เวลา ๑๖.๓๐ น.
พิธีปิด โดย ดร. พิสิฐ ลี้อาธรรม คณบดีคณะเศรษฐศาสตร์
สำรองที่นั่งและสอบถามรายละเอียดเพิ่มเติมได้ที่
หน่วยบริการวิชาการ 0-5394-2235