getTurnTakingMatrix: getSampledVocalCountMatrix: generate vocalisation diagrams

View source: R/vocalgraphs.R

getTurnTakingMatrixR Documentation

getSampledVocalCountMatrix: generate vocalisation diagrams

Description

Generate a vocalisation diagram with absolute vocalisation durations.

Usage

getTurnTakingMatrix(
  df,
  begin = "begin",
  end = "end",
  nodecolumn = "role",
  individual = FALSE,
  noPauseTypes = FALSE
)

Arguments

df

a data frame consisting, minimally, of a column for vocalisation/pause start times, a column for end times, and a column identifying the speaker, speaker role or 'Floor' (for silences).

begin

the name of the column containing the start time of the vocalisation event in a row.

end

the name of the column containing the end time of the vocalisation event in the same row.

nodecolumn

the name of the column containing the node (speaker) name (e.g. 'speaker', 'role').

individual

whether to include individual speakers or group them into a single Vocalisation node

noPauseTypes

if TRUE, ignore distinctions between pauses (SwitchingPause, GrpSwitchingPause, etc)

Details

A vocalisation diagram (vocaldia) is a representation of a dialogue as a Markov process whose cell <m,n> contains the transition probability from node n to node m). Unlike getSampledVocalCountMatrix this function accummulates event durations directly, therefore resulting in no self-transitions (in general).

Value

a vocaldia object, consisting of a vocalisation matrix (vocmatrix) where cell <m,n> contains the counts of transitions from node n to node m, and a table of absolute durations of vocalisation events.

References

S. Luz. Automatic identification of experts and performance prediction in the multimodal math data corpus through analysis of speech interaction. In Proceedings of the 15th ACM on International Conference on Multimodal Interaction, ICMI'13, pages 575–582, New York, NY, USA, 2013. ACM.

See Also

(Luz, 2013) and getTurnTakingMatrix.

Examples

x <- subset(atddia, id=='Abbott_Maddock_01')
getTurnTakingMatrix(x)
getTurnTakingMatrix(x, individual=TRUE)

vocaldia documentation built on Aug. 15, 2022, 1:05 a.m.