Dear all,
I would appreciate if you could share some of your stata knowledge with me.
I have data about all taxi rides in new york in January 2013.
Because Muslim drivers pray five times a day, this makes it possible to determine what drivers are Muslim.
This is where the idea came from: http://www.theiii.org/index.php/997/...-taxi-drivers/
At first I made a variable called ''working during praying times " with value 0.
As soon as a drivers had a ride during praying times, I changed this value to 1.
I did this for all days, five times a day.
Now I want to make a new dummy column called Muslim with either a 1 or a 0.
And this is where I could use some guidance.
There is a variable in each ride that represents a driver.
Of course some drivers did 'on accident' not work on praying times, I am interested in those that never worked during praying times.
So how do I make this dummy variable?
I'm new to stata, so if somebody is willing to help me, the obvious is not always obvious to me.
Best wishes and thanks in advance,
Bram.
I would appreciate if you could share some of your stata knowledge with me.
I have data about all taxi rides in new york in January 2013.
Because Muslim drivers pray five times a day, this makes it possible to determine what drivers are Muslim.
This is where the idea came from: http://www.theiii.org/index.php/997/...-taxi-drivers/
At first I made a variable called ''working during praying times " with value 0.
As soon as a drivers had a ride during praying times, I changed this value to 1.
I did this for all days, five times a day.
Now I want to make a new dummy column called Muslim with either a 1 or a 0.
And this is where I could use some guidance.
There is a variable in each ride that represents a driver.
Of course some drivers did 'on accident' not work on praying times, I am interested in those that never worked during praying times.
So how do I make this dummy variable?
I'm new to stata, so if somebody is willing to help me, the obvious is not always obvious to me.
Best wishes and thanks in advance,
Bram.
Comment