Use means, medians, or modes to summarise the distribution of random draws in an rvec.
Usage
draws_median(x, na_rm = FALSE)
# S3 method for class 'rvec_chr'
draws_median(x, na_rm = FALSE)
# S3 method for class 'rvec'
draws_median(x, na_rm = FALSE)
draws_mean(x, na_rm = FALSE)
# S3 method for class 'rvec'
draws_mean(x, na_rm = FALSE)
# S3 method for class 'rvec_chr'
draws_mean(x, na_rm = FALSE)
draws_mode(x, na_rm = FALSE)
# S3 method for class 'rvec'
draws_mode(x, na_rm = FALSE)Arguments
- x
An object of class rvec.
- na_rm
Whether to remove NAs before calculating summaries. Default is
FALSE.
Details
When method is "mode", reduce_rvec()
returns the most common value for each
observation. When there is a tie, it returns
NA.