Tutorial on simulation in SEM framework using R