size <- 100
makes <- rbinom(1,size,0.45)
t.test(makes,mu=0.5,alternative="less")
Error in t.test.default(makes, mu = 0.5, alternative = “less”) :
not enough ‘x’ observations
why is it saying there is not enough ‘x’ observations?
I am trying to carry out a formal hypothesis test at the (???? = 0.05) significance level
to determine if the proportion is less than 0.5.
Recognized by R Language Collective
New contributor
Nina Phillips is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.