Description Usage Arguments Value See Also Examples
View source: R/problem_stats-function.R
problem_stats()
provides information about problem occurrence data, including problem occurrence rates (as percentages) and (Adjusted-Wald binomial) confidence interval information (as percentages). You can optionally include one or more grouping variables to compute problem occurrence rates by groups, and modify the alpha level to adjust confidence intervals.
1 2 3 4 5 6 7 | problem_stats(.x, .y, ...)
## S3 method for class 'numeric'
problem_stats(.x, .y, ..., .alpha = NULL)
## S3 method for class 'data.frame'
problem_stats(.x, .y, ..., .alpha = NULL)
|
.x |
You can pass an integer (>0) indicating the total number of users who encountered a problem, and provide the total number of users to |
.y |
If |
... |
(Optional) If |
.alpha |
(Optional) A positive number (where 0 < |
A tibble with problem occurrence rate(s), confidence interval information, and other information. All percentage values in the output fall within the range of 0 and 100.
Other descriptive stats for UX measures:
ratings_stats()
,
success_stats()
,
time_stats()
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 | problem_stats(5,8) # Five users encountered a problem, 8 did not.
# The alpha level defaults to .alpha=0.05.
# You can provide your own alpha level
# to .alpha by naming the argument
# when you call the function:
problem_stats(15,20, .alpha = 0.01)
# If you have a long-format data frame,
# where each row contains an individual's
# data, and at least one column includes
# values indicating problem occurrences
# as 1s (problem encountered) and 0s
# you can pass the data frame to .x and
# specify the name of the task column:
.uxdata <-
data.frame("user_id" = c(1,2,3,4,5,6,7,8,9,10,11,12),
"login_prob" = c(1,0,0,1,0,0,1,1,0,0,1,0),
"group"=c("A","B","A","A","B","A","B","A","B","B","A","B"),
"version"=c(2,1,1,2,1,2,2,1,2,1,1,2),
stringsAsFactors = FALSE)
problem_stats(.uxdata, login_prob, group, .alpha=0.1)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.