[R] how to ignore t.test error message

Uwe Ligges ligges at statistik.uni-dortmund.de
Fri Dec 24 13:59:06 CET 2004


burak kutlu wrote:
> Hello,
> I was wondering if there is a way to ignore the error
> message you get when some of the data means you
> compare are constant in some lines of your data frame.

What does the error message say exactly?
Do you have an example?

Even with the degenerated case
   t.test(c(0, 0), c(0, 0))
I don't get any error message.


> I'd like to go ahead with t.test 

See ?try

> and get the calculated p-values anyway in such a case.

And what is the p-value in such a case?

I guess I haven't understood the problem correctly, so please be more 
specific!

Uwe Ligges


> Thanks
> -burak
> 
> ______________________________________________
> R-help at stat.math.ethz.ch mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html




More information about the R-help mailing list