Is there any command to find the standard error of the mean in R?

0 votes

To find the standard error of the mean (the standard deviation divided by the square root of the sample size), you can use the following methods:

Using the “**plotrix**” package:

install.packages("plotrix")

library("plotrix")

std.error(c(1,2,3,4))

[1] 0.6454972

Use the following function:

std <- function(x) sd(x)/sqrt(length(x))

> std(c(1,2,3,4))

[1] 0.6454972