[R] calculating std err (SEM)?

Kirk R. Wythers kwythers at umn.edu
Fri Mar 1 16:15:45 CET 2002

Is there a "canned" function in R for finding the standard error of the
mean? I have tried 

>  sem <- function(x) c(mean =mean(x),
+  SEM = stdev(x)/sqrt(length(x)))
> sem(pnet.lai)
Error in sem(pnet.lai) : couldn't find function "stdev"

It looks like there is no stdev function in R



Kirk R. Wythers				email: kwythers at umn.edu
University of Minnesota			tel: 612.625.2261
Department of Forest Resources		fax: 612.625.5212
Saint Paul, MN 55108

r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch

More information about the R-help mailing list