Eric,
You can subtract one vector from another, and then take the mean.
For example, you can do c = (b-a) where a and b are both vectors. Once you
have the resulting vector (c), you take the mean of that vector and get the
SE of that. (mean(c) and sd(c))
Hope that helps.
-Anna
---
Anna Weisfeiler
US: +1 (617) 388-4473
Graduate Student, ALM Candidate, Harvard University
Graduate Student Associate, Davis Center for Russian & Eurasian Studies,
Harvard University
annaw at
post.harvard.edu
anna.weisfeiler at
gmail.com
On Sat, Apr 10, 2010 at 8:08 PM, Lin, Eric <elin at hbs.edu> wrote:
really basic question on using R:
does anyone know how to do a difference in means test in R?
Thanks!
EXL
--
ERIC LIN
Technology and Operations Management
Harvard Business School
Boston, MA 02163
elin at
hbs.edu
mobile: +1.216.225.2545
_______________________________________________
gov2001-l mailing list
gov2001-l at
lists.fas.harvard.edu
http://lists.fas.harvard.edu/mailman/listinfo/gov2001-l