Error: object 'x' not found

I am trying to perform the t.test using the function in RStudio on my data and I receive the 'Object not found' error in the console. I am sure to have properly imported everything, I use the commands:

t.out <- t.test(placebo, med, var.equal = TRUE)
t.out

Should I be storing the test in my t.out object? Is it necessary to use set.seed(0) also?

Here is the full log of my error in console shown below:

Check your variables, I think you're running into something along the lines of:

> t.test(x = c(1,1,1), y = c(2,2,2))
Error in t.test.default(x = c(1, 1, 1), y = c(2, 2, 2)) : 
  data are essentially constant

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.