Generates an ENA model by constructing a dimensional reduction of adjacency (co-occurrence) vectors as defined by the supplied conversations, units, and codes.

ena(
data,
codes,
units,
conversation,
model = c("EndPoint", "AccumulatedTrajectory", "SeparateTrajectory"),
weight.by = "binary",
window = c("MovingStanzaWindow", "Conversation"),
window.size.back = 1,
include.meta = TRUE,
groupVar = NULL,
groups = NULL,
runTest = FALSE,
points = FALSE,
mean = FALSE,
network = TRUE,
networkMultiplier = 1,
subtractionMultiplier = 1,
unit = NULL,
include.plots = T,
print.plots = F,
...
)

Arguments

data data.frame with containing metadata and coded columns vector, numeric or character, of columns with codes vector, numeric or character, of columns representing units vector, numeric or character, of columns to segment conversations by vector, numeric or character, of columns with additional meta information for units character: EndPoint (default), AccumulatedTrajectory, SeparateTrajectory "binary" is default, can supply a function to call (e.g. sum) MovingStanzaWindow (default) or Conversation Number of lines in the stanza window (default: 1) [TBD] vector, character, of column name containing group identifiers. If column contains at least two unique values, will generate model using a means rotation (a dimensional reduction maximizing the variance between the means of the two groups) vector, character, of values of groupVar column used for means rotation, plotting, or statistical tests logical, TRUE will run a Student's t-Test and a Wilcoxon test for groups defined by the groups argument logical, TRUE will plot points (default: FALSE) logical, TRUE will plot the mean position of the groups defined in the groups argument (default: FALSE) logical, TRUE will plot networks (default: TRUE) numeric, scaling factor for non-subtracted networks (default: 1) numeric, scaling factor for subtracted networks (default: 1) vector, character, name of a single unit to plot logical, TRUE will generate plots based on the model (default: TRUE) logical, TRUE will show plots in the Viewer(default: FALSE) Additional parameters passed to set creation and plotting functions

ena.set object

Details

This function generates an ena.set object given a data.frame, units, conversations, and codes. After accumulating the adjacency (co-occurrence) vectors, computes a dimensional reduction (projection), and calculates node positions in the projected ENA space. Returns location of the units in the projected space, as well as locations for node positions, and normalized adjacency (co-occurrence) vectors to construct network graphs. Includes options for returning statistical tests between groups of units, as well as plots of units, groups, and networks.

Examples

data(RS.data)

rs = ena(
data = RS.data,
)