Dear recipient I am using the r-program to do calculations with my data. I would like to ask you how to calculate the expected value with R using this data? I only get an error message in response. Attached is my data. Thank you for your kind answer! Henrik Alanko Faculty of statistics Helsinki University -------------- next part -------------- 7.2000 7.8500 7.2500 7.450 7.520 7.1700 6.9300 7.5400 7.480 7.490 7.040 6.240 6.550 7.550 6.500 7.180 6.130 7.880 6.740 6.560 6.240 6.320 6.750 5.960 6.150 6.050 5.570 5.920 4.300 4.680 5.360
On 05-02-2014, at 10:46, Henrik Alanko <henrik.alanko at helsinki.fi> wrote:> > Dear recipient > I am using the r-program to do calculations with my data. > I would like to ask you how to calculate the expected value with R using this data? I only get an error message in response. Attached is my data. >What do you mean with ?expected value?? How did you try to calculate this ?expected value?? What error message did you get exactly? Have you looked at mean? Berend> Thank you for your kind answer! > Henrik Alanko > Faculty of statistics > Helsinki University > <ice1.csv>______________________________________________ > R-help at r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code.
https://github.com/hadley/devtools/wiki/Reproducibility http://stackoverflow.com/questions/5963269/how-to-make-a-great-r-reproducible-example We need some explanation of what " the expected value" is. A mean perhaps? John Kane Kingston ON Canada> -----Original Message----- > From: henrik.alanko at helsinki.fi > Sent: Wed, 5 Feb 2014 11:46:19 +0200 > To: r-help at stat.math.ethz.ch > Subject: [R] expected value with R > > > Dear recipient > I am using the r-program to do calculations with my data. > I would like to ask you how to calculate the expected value with R > using this data? I only get an error message in response. Attached is > my data. > > Thank you for your kind answer! > Henrik Alanko > Faculty of statistics > Helsinki University > ______________________________________________ > R-help at r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide > http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code.____________________________________________________________ GET FREE SMILEYS FOR YOUR IM & EMAIL - Learn more at http://www.inbox.com/smileys Works with AIM?, MSN? Messenger, Yahoo!? Messenger, ICQ?, Google Talk? and most webmails