Re: [R] Structural equation models (SEM) for count data / poisson distribution

2013-08-07 Thread John Fox
Dear Stella, The sem package doesn't make provision for count data. Because the sem() function allows the user to specify an arbitrary objective function, if you know the likelihood for the model that you want to fit, you could in principle write a corresponding objective function, but this

[R] Structural equation models (SEM) for count data / poisson distribution

2013-08-06 Thread Stella Copeland
Dear R community, I am constructing structural equation models in R and I have tried both the sem and lavaan packages. I have count data (numbers of plants in this case) that I would like to use as an endogenous variable. The poisson distribution seems appropriate for these data, but I can't