[R] Lavaan Model Specification

2014-04-30 Thread Patzelt, Edward
R Community - I'm trying to build the model in the image below, but having troubles correctly specifying the syntax: library(lavaan) library(semPlot) lower - matrix(c(1, 0, 0, 0, .475, 1, 0, 0, .738, .643, 1, 0, .608, .721, .823, 1), 4, 4, byrow = TRUE) colnames(lower) - rownames(lower) -

Re: [R] Lavaan Model Specification

2014-04-30 Thread Jeremy Miles
No picture attached, and you don't tell us what your trouble is, but your model has -4 df, so it's incorrectly specified. Take out these lines: congressmanAttitudes ~~ congressmenPerceptConstiuentAttitudes congressmenPerceptConstiuentAttitudes ~~ constiuentAttitudes rollCallBehav ~~