This document describes using R to conduct structural equation modeling (SEM) to measure transaction costs. It aims to develop a transaction cost measurement, empirically test it, and compare using R packages like sem, OpenMx, and lavaan to commercial SEM software. The methodology section outlines using Lisrel, AMOS, sem, OpenMx, and lavaan to specify and fit the SEM model to questionnaire data from Thailand's tourism industry. The results section displays output from the different packages demonstrating they can produce identical results to commercial SEM software.