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

Laurent Houdusse l.houdusse at cerep.fr
Wed Dec 10 11:14:44 CET 2003


Thanks for this formulae

For stdError, i found this:
stdError <- sd(x)/sqrt(length(x))


Laurent Houdusse
Analyste Programmeur



-----Message d'origine-----
De : Adaikalavan RAMASAMY [mailto:ramasamya at gis.a-star.edu.sg] 
Envoyé : mercredi 10 décembre 2003 10:52
À : Laurent Houdusse; r-help at stat.math.ethz.ch
Objet : RE: [R] How to calculate standard error for a vector?


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