Sorry for bothering everyone.
I met a problem when I tried to transfer a data set from SAS to
WINBUGS. The data set I generated in SAS has a hierarchical structure
as follows:
obs i j x1 x2 x3 y
1 1 1 0.35958 0.67927 0.25876 1
2 1 2 0.69103 0.16982 0.60427 0
3 1 3 0.95370 0.13868 0.96908 0
4 1 4 0.15781 0.78085 0.05155 1
5 1 5 0.82808 0.12394 0.97629 0
6 1 6 0.20235 0.56308 0.95577 0
7 1 7 0.31491 0.69448 0.03356 1
8 1 8 0.53636 0.15497 0.58343 0
9 1 9 0.04142 0.22935 0.21585 1
10 1 10 0.35005 0.60405 0.11989 1
11 2 1 0.56238 0.34140 0.78791 0
12 2 2 0.07582 0.29221 0.03031 1
13 2 3 0.39848 0.39655 0.68774 0
14 2 4 0.49622 0.48042 0.38128 1
15 2 5 0.53194 0.21879 0.87443 0
16 2 6 0.85476 0.30305 0.12782 1
17 2 7 0.01700 0.98871 0.72957 1
18 2 8 0.77931 0.56579 0.31921 1
19 2 9 0.82345 0.19629 0.52417 0
20 2 10 0.15123 0.76986 0.94503 0
The final data structure that I want to get is a file which lists all
variables in a list command with a dimension (like
list(N=200,p=5,x=structure(.Data=c(..., ..., ...,), .Dim=c(200,30)).
Or, someone could tell me how can I import a multilevel data set with
rectangular format to WINBUGS.
Please help!
Your help will be highly appreciated!
Best regards
Tianji Cai
-------------------------------------------------------------------
This list is for discussion of modelling issues and the BUGS software.
For help with crashes and error messages, first mail [log in to unmask]
To mail the BUGS list, mail to [log in to unmask]
Before mailing, please check the archive at www.jiscmail.ac.uk/lists/bugs.html
Please do not mail attachments to the list.
To leave the BUGS list, send LEAVE BUGS to [log in to unmask]
If this fails, mail [log in to unmask], NOT the whole list
|