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)