Re: [R] Mean of simulation runs given in a table

2012-01-19 Thread Irek Szczesniak
;> Behalf Of Ireneusz >> Szczesniak >> Sent: Tuesday, January 17, 2012 2:43 PM >> To: r-help@r-project.org >> Subject: Re: [R] Mean of simulation runs given in a table >> >> Thank you, Uwe, for your help!  I have more measurements (m1, m2) and >> more par

Re: [R] Mean of simulation runs given in a table

2012-01-17 Thread William Dunlap
z > Szczesniak > Sent: Tuesday, January 17, 2012 2:43 PM > To: r-help@r-project.org > Subject: Re: [R] Mean of simulation runs given in a table > > Thank you, Uwe, for your help! I have more measurements (m1, m2) and > more parameters (par1, par2). I can calculate the means of

Re: [R] Mean of simulation runs given in a table

2012-01-17 Thread Ireneusz Szcześniak
Thank you, Uwe, for your help! I have more measurements (m1, m2) and more parameters (par1, par2). I can calculate the means of m1 and m2 this way: aggregate(cbind(m1, m2) ~ par1 + par2, dat, mean) However, I also need to calculate the standard error of the mean, and the variance for the sa

Re: [R] Mean of simulation runs given in a table

2012-01-17 Thread Uwe Ligges
On 17.01.2012 12:31, Irek Szczesniak wrote: Hi, I have the simulation results of the following structure: run par measured 1 1012 2 1014 1 2020 2 2026 Where "run" is the simulation run number, "par" is the parameter of the simulation, and "measured" is the value mea

[R] Mean of simulation runs given in a table

2012-01-17 Thread Irek Szczesniak
Hi, I have the simulation results of the following structure: run par measured 1 1012 2 1014 1 2020 2 2026 Where "run" is the simulation run number, "par" is the parameter of the simulation, and "measured" is the value measured in the simulation. This is only a simple