WebBUGS
Conducting Bayesian Analysis Online Using BUGS
WebBUGS
>>
Main page
Recent changes
Syntax
History
Data
!Convert data into BUGS format A user can either convert data in a data file to BUGS data or convert data input in a text area. !!From existing data file To convert a data file, click the link '''BUGS data'''. Then the screen below is shown. On the screen, a user can type in required data information for BUGS. Each row represents a piece of information. Any '''R''' data manipulation code can be used here. After input, one can click on '''Convert data'''. The BUGS format data are given in a textarea that can be further edited. [http://webbugs.psychstat.org/public/datalist5.jpg] !!Input data directly To input and convert data, one can follow the link: http://webbugs.psychstat.org/modules/data/tobugs.php .Then a screen below is shown. On the screen, one can simply type the data. Each piece of information is separated by a semi-colon ''';'''. For each information, its name is first given and then followed by '''='''. A scalar, vector, or matrix can be used. For a vector, a list of values need to be provided. One can change to a new line if needed. For a matrix, the dimension of the matrix is first given and then the data information. The dimension and data are separated by comma ''','''. [http://webbugs.psychstat.org/public/datalist4.jpg] !!Convert data in place BUGS data can also be converted when needed. In doing so, one can use the same method above but directly put data in place of data or initial values. For example, the screen below gives an example of inputing two sets of initial values in order to initializing two chains. Note that data for each chain are separated by vertical bar '''|'''. After input, one can click on the button '''Convert data'''. Then converted data will be shown as in the captured screen below. Data input [http://webbugs.psychstat.org/public/datalist6.png] Converted data [http://webbugs.psychstat.org/public/datalist7.png]
Password
Summary of changes
Powered by
LionWiki
. Last changed: 2014/07/30 19:57
Erase cookies
Syntax
History
WebBUGS