Skip to content
Back to formatted view

Raw Message

Message-ID: <1014995745.5470.12.camel@lorax.forestry.umn.edu>
Date: 2002-03-01T15:15:45Z
From: Kirk R. Wythers
Subject: calculating std err (SEM)?

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

Thanks,

Kirk



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
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._