# Model formulas.
#----------------
strumForm = 'bp =~ SBP + DBP
anger =~ A1 + A2 + A3
stress =~ S1 + S2 + S3
bp ~ anger + stress + <p,e>
stress ~ anger + rs6040343
var(stress)=.1
'
# Create a strumModel.
#---------------------
myStrumModel = createStrumModel(
formulas = strumForm,
ascertainment = "disease"
)Run the code above in your browser using DataLab