View source: R/specific_calculations.R
se_mean | R Documentation |
The standard error of the mean is how the estimated mean changes with multiple measurements (i.e. how far away the mean of each sampling event or observation is from the true population mean). SE drops as sample size grows because as you take more mreasurements, the sampling means cluster more closely to the true mean.
se_mean(vec, na.rm = FALSE)
vec |
(Numeric) A vector. |
na.rm |
(Logical) If 'TRUE', remove 'NA's from 'vec'. |
The standard error of the mean of 'vec'.
se_mean(c(1, 2, 3, 4, NA_integer_))
#> NA
se_mean(c(1, 2, 3, 4, NA_integer_), na.rm = TRUE)
#> [1] 0.6454972
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.