Re: [R] Sample mean in R

2008-10-05 Thread Ted Harding
On 05-Oct-08 20:00:00, dilian wrote: > I am having issues with the following: > > (muhat = 1/n^2(sum of all the xi's) ) > > essentially if xbar = the sample mean, muhat = sample mean but square > the n. > > Question: > Use R to run a Monte Carlo simulation which compares the finite-sample > per

[R] Sample mean in R

2008-10-05 Thread dilian
I am having issues with the following: (muhat = 1/n^2(sum of all the xi's) ) essentially if xbar = the sample mean, muhat = sample mean but square the n. Question: Use R to run a Monte Carlo simulation which compares the finite-sample performance of xbar and muhat. Specifically generate 1000