[R] How to calculate standard error for a vector?

Adaikalavan RAMASAMY ramasamya at gis.a-star.edu.sg
Wed Dec 10 10:52:03 CET 2003


sd <- sqrt(var(x)) # standard deviation
cv <- sd / mean(x) # coefficient of variation
ss <- mean( x^2 )  # sum of squares - definitions vary !

If these are the statistics you are going to be using, it might be more
efficient to code it directly.

--
Adaikalavan Ramasamy 


-----Original Message-----
From: r-help-bounces at stat.math.ethz.ch
[mailto:r-help-bounces at stat.math.ethz.ch] On Behalf Of Laurent Houdusse
Sent: Wednesday, December 10, 2003 4:57 PM
To: 'r-help at stat.math.ethz.ch'
Subject: [R] How to calculate standard error for a vector?


Hi all!

I 'm beginner and i develop a bio-application with VB and i need some
statistic functions! could i calculate StdError, CoeffOfVariance,
SumSquared with R langage? if yes, what are functions to use?

I need also to use ANOVA and t-test...

Thanks for your help!



Laurent Houdusse 
Analyste Programmeur

______________________________________________
R-help at stat.math.ethz.ch mailing list
https://www.stat.math.ethz.ch/mailman/listinfo/r-help




More information about the R-help mailing list