0 votes
1 view
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 (25.3k points)

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

Welcome to Intellipaat Community. Get your technical queries answered by top developers !


Categories

...