Back

Explore Courses Blog Tutorials Interview Questions
0 votes
3 views
in R Programming by (5.3k points)

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

1 Answer

0 votes
by
edited by

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

Browse Categories

...