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
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
2 matches
Mail list logo