Hello all,
I have a very simple model of observed variables:
data=data
model<-"
C~B+D
A~C+D
"
fit<-sem(model, data=data, std.ov=T)
I would like to get predicted values of endogenous variable "D", given a 10% increase in A, and 20% increase in C (for example)
I'm guessing a way to do this is generate a new dataset (A=A+10%, B=B, C=C+20%) and leave D empty, but run it through:
lavPredict(fit, newdata = newdata)
Perhaps I am wildly misunderstanding how to take coefficient scores from one model and apply it to a new data set.
Thanks for advice in the right direction,
Michael