Sorry, I am an R newbie and I am having some difficulty
How would I write the following inequality in R:
x > 10 is twice more likely than x < 10
I tried this function and it didn't work :
X = 10
f = function(X,Y) {
if ((2(X) >= 10 & X <= 10) {
print("in range")
} else {
print("out of range")
}
}