I would like to write certain model in R.
I would like to o use a vector object as a dependent variable in my general linear model. The model is supposed to explain how some environmental factors, and their interactions, explain the shape of a species community composition.
The vector object is supposed to look something like [0,2,0,3,1] and designate species community composition. Each dimension of the vector is intended to be a different species, and their values are intended to show the abundance of species.
Does anybody know in which package is it possible to do it/ is it possible at all?
If anybody has a better idea how to model such a relation, I am also open to ideas ;)
Thanks in advance,