This shows you the differences between two versions of the page.
|
02_a_note_to_readers [2007/12/12 09:51] jkastellec |
02_a_note_to_readers [2009/12/19 11:41] (current) leoniedu |
||
|---|---|---|---|
| Line 8: | Line 8: | ||
| In the paper, we took a sample of tables from leading political science journals and converted them to graphs. This web site contains both the table and graph versions of each of these tables, as well as the //R// code that we used to create the graphs. The site also contains a few graphs (most converted from tables in the same journals) that we did not include in the paper due to space limitations. | In the paper, we took a sample of tables from leading political science journals and converted them to graphs. This web site contains both the table and graph versions of each of these tables, as well as the //R// code that we used to create the graphs. The site also contains a few graphs (most converted from tables in the same journals) that we did not include in the paper due to space limitations. | ||
| - | |||
| - | |||
| - | |||
| - | |||
| - | |||
| - | |||
| ===== Using This Site ==== | ===== Using This Site ==== | ||
| There are two main pages on the site: one that includes graphs of [[03_descriptive_statistics|descriptive statistics]], and one that includes graphs of [[04_regression_coefficients|regression coefficients]]. On each page, the tables and graphs appear in the same order as they do in the paper; additional graphs that we did not present appear toward the bottom of the page. For each table/graph combination, we display the original table and then our graph. Below each graph appears a link where you can download a text file containing the R code we used to construct the graph. Some of the graphs required the input of datasets; where needed, we have created links to Stata datasets that we used to create a graph. (Note that you do not have to be a Stata user to access these datasets in R. Our R code automatically reads these datasets into R.) We have also supplied Stata code for a few of the graphs; we are hoping to create Stata code for as many graphs as possible, and will continue to update the website. | There are two main pages on the site: one that includes graphs of [[03_descriptive_statistics|descriptive statistics]], and one that includes graphs of [[04_regression_coefficients|regression coefficients]]. On each page, the tables and graphs appear in the same order as they do in the paper; additional graphs that we did not present appear toward the bottom of the page. For each table/graph combination, we display the original table and then our graph. Below each graph appears a link where you can download a text file containing the R code we used to construct the graph. Some of the graphs required the input of datasets; where needed, we have created links to Stata datasets that we used to create a graph. (Note that you do not have to be a Stata user to access these datasets in R. Our R code automatically reads these datasets into R.) We have also supplied Stata code for a few of the graphs; we are hoping to create Stata code for as many graphs as possible, and will continue to update the website. | ||
| - | For readers who prefer to download all code and data at once, we have also created a [[http://svn.tables2graphs.com/tables2graphs/Rcode/Final%20Code%20for%20Website/all_code_data.zip|zip file]] that contains the complete R code, Stata code (where applicable) and Stata datasets (also where applicable) that were used to create all the graphs that appear on this site. | + | For readers who prefer to download all code and data at once, we have also created a [[http://svn.tables2graphs.com/tables2graphs/Rcode/Final%20Code%20for%20Website/all_code_data.zip|zip file]] that contains the complete R code, Stata code (where applicable) and Stata datasets (also where applicable) that were used to create all the graphs that appear on this site. [[http://www.ats.ucla.edu/stat/stata/paperexamples/Kastellec_Leoni/default.htm|UCLA's ATS]] has Stata code that can be used to recreate some of the graphs. |
| ===== R Code ==== | ===== R Code ==== | ||
| Line 36: | Line 30: | ||
| To create a pdf file, you would need to remove the comment from both the pdf() command and the dev.off() command. Likewise, to create a png file, you would need to remove the comment from the png() command and the dev.off() command. | To create a pdf file, you would need to remove the comment from both the pdf() command and the dev.off() command. Likewise, to create a png file, you would need to remove the comment from the png() command and the dev.off() command. | ||
| - | |||
| - | |||
| - | |||
| - | |||
| - | |||
| - | |||
| - | |||
| - | |||