I am new to statistics with R. While doing a one sample t-test with R with population mean specified, I find the results on confidence levels given by R are misleading. Instead of giving confidence intervals on the basis of population mean, R is showing confidence intervals on the basis of sample mean (even when mu is specified). This is wrong and could mislead the user. The confidence levels given by R for t.test are applicable only when population mean is not known and the sample mean is taken as estimator for population mean. I am wondering why this is yet not corrected in R?
(I learnt business statistics 10-20 years back, but I have anyway verified now by bootstrapping t-statistics distribution and finding out and testing the t.test confidence levels manually to be sure about this misleading output. Though this should be obvious to learnt user, I still believe it should be documented in help page of R for t.test)