Runs topic modeling, term-frequency, readability, and thematic analysis on focus group results, with basic conversation statistics.
Usage
analyze_focus_group(
focus_group_result,
num_topics = 5,
include_plots = TRUE,
sentiment_method = "afinn"
)Arguments
- focus_group_result
Either a FocusGroup object or the result from run_focus_group()
- num_topics
Integer number of topics for topic modeling (default: 5)
- include_plots
Logical, whether to generate plots (default: TRUE)
- sentiment_method
Deprecated. Ignored. Sentiment analysis was removed from package scope.
Value
A list with `basic_stats`, `topics`, `sentiment` (always `NULL`; sentiment analysis was removed from package scope), `tfidf`, `readability`, `themes`, and (when `include_plots = TRUE`) `plots`.
Examples
if (FALSE) { # \dontrun{
# Run focus group and analyze
result <- run_focus_group("Climate change perceptions", participants = 8)
analysis <- analyze_focus_group(result, num_topics = 4)
# View topic analysis
analysis$topics
# View the readability table
analysis$readability
} # }
