Dear lavaan community,
Thank you for this group and the helpful lavaan tutorial!
Currently, I am working on a dataset to analyze the impacts of climate change on health while working in the heat. Through lavaan, I am coding the following relationships and would be super glad if someone could help me answer my two questions:
model1 <-
'Heat stress =~ air_temp + solar_rad + air_velocity + humidity
Heat strain =~ heart_rate + skin_temp +
tympanic_temp + core_temp
Heat strain ~ Heat stress'
fit <- sem(model1, data=data)
summary(fit, standardized=TRUE, fit.measures=TRUE)
Question 1: We have repeated measures for each of the 100 participants and would like to consider these individual differences with random intercepts. Does the lavaan software have such a feature included?
Question 2: The effect of heat stress on heat strain is modified by several variables such as age and level of fitness. Does lavaan have a feature to code effect modification or is it better to code this as a latent variable?
Many thanks in advance & best regards,
Carole Bouverat