View source: R/systematic-methods.R
summary.cp_unsystematic | R Documentation |
Creates a summary of unsystematic data checks across multiple subjects and groups. This function takes a dataframe containing results from multiple calls to 'check_unsystematic_cp()' and provides a comprehensive summary of patterns found.
## S3 method for class 'cp_unsystematic'
summary(object, ...)
object |
A dataframe containing results from multiple 'check_unsystematic_cp()' calls, typically with columns 'id', 'group', 'delta_direction', 'bounce_direction', 'bounce_any', 'bounce_above', and 'bounce_below'. |
... |
Additional arguments (currently unused) |
A list with summary statistics including:
total_patterns |
Total number of patterns examined |
systematic_count |
Number of systematic patterns |
unsystematic_count |
Number of unsystematic patterns |
systematic_percent |
Percentage of systematic patterns |
unsystematic_percent |
Percentage of unsystematic patterns |
trend_counts |
Counts by trend direction |
bounce_counts |
Counts by bounce direction |
group_summary |
Summary statistics by group |
problem_ids |
IDs with the most unsystematic patterns |
## Not run:
# Run unsystematic checks on multiple patterns
unsys_all <- etm |>
group_by(id, group) |>
nest() |>
mutate(unsys = map(data, check_unsystematic_cp)) |>
unnest(unsys)
# Create summary
summary(unsys_all)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.