Is there a book along these criteria?
- introductory
- discuss both theory and writing program
- focus on social science (economics / politics / sociology)
There are bunch of tutorials on the Internet, but journal articles tend not to have code, and a lot of work is not relevant to social science. Thus I think I'll get better recommendation from Econs SE.