sienaDataCreateFromSession {RSiena} | R Documentation |
Reads in a Siena session from file or siena01Gui()
and creates a Siena data or group object.
sienaDataCreateFromSession(filename = NULL, session = NULL, modelName = "Siena", edited = NULL, files = NULL)
filename |
Input session file |
session |
Input session (from siena01Gui ) |
modelName |
Character string of project name |
edited |
Boolean, indicates whether a file has been edited and
therefore should not be re-read. Used internally by
siena01Gui . |
files |
List of data files, used internally by siena01Gui |
Allows creation of data objects of class "Siena" direct from data
files rather than from the various Siena network and covariate
objects. Is always called by siena01Gui
but can also be used
directly.
The columns of the gui screen should have the format described below. If a session file is used for input, it should have columns with exactly the same names and in exactly the same order as those below with a row of column headings and no row numbers.
siena01Gui
, usually entered by using a
file selection box, after clicking Add
.If using a file for input, it should be of one of the following types:
Extension | Type |
.csv | Comma separated |
.dat or .prn | Space delimited |
.txt | Tab delimited |
Network and covariate files should be text files with a row for each node. The numbers should be separated by spaces or tabs. Exogenous events should be specified by a file with a row for each node. Each row should be consist of a set of pairs of numbers which indicate the periods during which the corresponding actor was present. e.g.
1 3 1.5 3 1 1.4 2.3 3 2.4 3would describe a network with 4 nodes, and 3 observations. Actor 1 is present all the time, actor 2 joins at time 1.5, actor 3 leaves and time 1.4 then rejoins at time 2.3, actor 4 joins at time 2.4. All intervals are treated as closed.
A list with the following components:
OK |
Boolean, TRUE indicating success |
mydata |
A Siena data or group object, of class siena or
sienaGroup |
myeff |
Effects object associated with mydata |
Ruth Ripley
See http://www.stats.ox.ac.uk/~snidjers/siena/