how to limit sample to a qualitative characteristics
Posted: Fri Jul 24, 2015 7:25 pm
I am currently reading "Forecasting, Method and Application 3rd", the data I have is about second hand cars and it contains four variables, the car model, the country it is made in (USA or Japan), mileage and price it was sold for.
Now, I want to limit the sample to Japanese cars only, the data contain the words USA or Japan, and not 1 or 2. Is there a way to limit the sample to Japanese cars without having to first change USA/Japan to 1 and 2 first? Because in the IF condition, when I type
it gives me error.
Now, I want to limit the sample to Japanese cars only, the data contain the words USA or Japan, and not 1 or 2. Is there a way to limit the sample to Japanese cars without having to first change USA/Japan to 1 and 2 first? Because in the IF condition, when I type
Code: Select all
country = Japan