Question
I am trying to answering this question R, but I keep getting the following error when I run my line of code. Intelligence is numerical
I am trying to answering this question R, but I keep getting the following error when I run my line of code.
Intelligence is numerical
antennae is categorical
"Error in if (stderr < 10 * .Machine$double.eps * abs(mx)) stop("data are essentially constant") :
missing value where TRUE/FALSE needed
In addition: Warning message:
In Ops.factor(x, y) : '-' not meaningful for factors
>"
# Question 4.use a two-sample t test to determine whether there is
# a significant difference in intelligence between aliens with curly
# and straight antennae.What is the null hypothesis, and do you reject it?
# What is the p-value? (3 points)
t.test(my_sample$intelligence,my_sample$antennae, alternative = "two.sided", mu = 0, paired = T)
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started