synchrony(scene, method, subject = "all", averageType = "mean",
syncNN = 1, compareToSelf = FALSE, frame = "within")subject:
If subject is "population" synchrony will return a numeric
value that has a range depending on the method. If
subject is "pairwise" synchrony will return a matrix
with all pairwise synchrony comparisons. It is important to note two things:
[1] if method is set to "sync_nn" then the pairwise comparisons will
be in descending order and cannot be indexed by ID order. [2] if
compareToSelf is set to FALSE, the matrix will have dimensions 100
rows by 99 columns. Similar to overlap, indexing will be
affected. If subject is "individual" synchrony will
returns a data frame with a row for id and a row for individual synchrony.
If subject is "all" synchrony will return a list
containing the values described above for population, pairwise, and
individual synchrony.pop <- simulateScene(size = 150)
synchrony(pop, "augs")
pop2 <- simulateScene(size = 1234, sdDur = 5, sk = 1)
syncVals <- synchrony(pop2, "sync_nn", "all", "median", 123)Run the code above in your browser using DataLab