I collected analysts’ forecasts and calculated bias and accuracy such as:
$bias=actual-forecast$
$accuracy=abs(actual-forecast)$
What I am wondering is now on how to calculate the t-statistic to determine that the median bias is significantly different from zero. I am using R and found the t.test function to calculate mean significance but did not find anything appropriate for the median. (in my case I need the one sample t-test)
t.test(x)(assuming your data were inx). It returns a test statistic and p-value in the output. – Glen_b Aug 17 '14 at 00:32