Multivariate response model poisson offset
Posted: Fri May 13, 2016 11:12 am
Hi
I'm trying to run a multiple response Poisson model, with 3 responses and 3 levels.
I'm having difficulty creating the 'long' offset variable in order to incorporate it into each model.
I've tried to join the three offset variables together, but the long response variables created by MLwiN are sorted in a different order to this.
eg. the response variable is ordered as
response 1,1
response 2,1
response 3,1
response 1,2
response 2,2
...
response 1,N
response 2,N
response 3,N
where as the variable I created using the Join function in the Data Manipulation menu is ordered as:
offset 1,1
offset 1,2
...
offset 1,N
offset 2,1
...
offset 2,N
offset 3,1
...
offset 3,N
Any help would be greatly appreciated!!
Thanks,
Megan
I'm trying to run a multiple response Poisson model, with 3 responses and 3 levels.
I'm having difficulty creating the 'long' offset variable in order to incorporate it into each model.
I've tried to join the three offset variables together, but the long response variables created by MLwiN are sorted in a different order to this.
eg. the response variable is ordered as
response 1,1
response 2,1
response 3,1
response 1,2
response 2,2
...
response 1,N
response 2,N
response 3,N
where as the variable I created using the Join function in the Data Manipulation menu is ordered as:
offset 1,1
offset 1,2
...
offset 1,N
offset 2,1
...
offset 2,N
offset 3,1
...
offset 3,N
Any help would be greatly appreciated!!
Thanks,
Megan