knitr::opts_chunk$set( collapse = TRUE, comment = "#>" )
# Load SemanticDistance library(ConversationAlign)
This is the final step where ConversationAlign
will compute summary statistics including main effects and alignment statistics for the vectorized dataframe you produced using prep_dyads()
. Users have several options for how to output their data, and these choices should be guided by your analysis strategy. For example, a linear mixed effects approach might involve modeling the rise and fall of values across turns. In contrast, a standard ANOVA would work on grouped summary data.
Arguments to summarize_dyads()
include:
1) df_prep= dataframe created by prep_dyads()
function
2) custom_lags= default is NULL, any additional user-specified lagged correlations. will automatically produce lead of 2 turns, immediate response, lag of 2 turns for each dimension of interest.
3) sumdat_only= boolean default is TRUE, produces grouped summary dataframe with averages by conversation and participant for each alignment dimension, FALSE retrains all of the original rows, filling down empty rows of summary statistics for the conversation (e.g., AUC)
4) corr_type= default='Pearson', other option 'Spearman' for computing turn-by-turn correlations across interlocutors for each dimension of interest.
MarySumDat <- summarize_dyads(df_prep = NurseryRhymes_Prepped, custom_lags=NULL, sumdat_only = TRUE, corr_type='Pearson') colnames(MarySumDat) knitr::kable(head(MarySumDat, 15), format = "simple", digits = 3)
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.