-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path11_wrapup.qmd
More file actions
211 lines (129 loc) · 7.87 KB
/
11_wrapup.qmd
File metadata and controls
211 lines (129 loc) · 7.87 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
# Wrap-up
## Project management
### RStudio projects
- RStudio projects are an excellent way to keep all the files associated with a project (data, R scripts, results, figures, etc.) in one place on your computer.
- This is one of the best ways to improve your workflow in RStudio, allowing you to:
- Create a project for each paper or data analysis project.
- Store data files in one place.
- Save, edit, and run scripts.
- Keep outputs such as plots and cleaned data.
- To create a new project file, click `File > New Project`, then:
{fig-align="center" width="400"}
{fig-align="center" width="400"}
{fig-align="center" width="400"}
- Call your project some version of "methodscamptest" and choose carefully where you wish to store the project on your machine.
::: callout-warning
If you don't store your project (and your other files, too!) somewhere reasonable, it will be hard to find it in the future! We recommend creating a clear organizational scheme for yourself early on.
:::
#### Using RStudio projects
When using an RStudio project, you should see its name in the top-right corner of RStudio, next to a light blue icon. You can check with R the folder in which your project operates:
```{r}
#| eval: false
getwd()
```
- Now, as an example, let's run the following commands in the script editor and save the files into the project directory.
```{r}
#| eval: false
library(tidyverse)
my_plot <- ggplot(mtcars, aes(wt, mpg)) +
geom_point()
ggsave(plot = my_plot,
filename = "plot_mtcars.pdf")
write_csv(mtcars, "mtcars.csv")
```
- Quit RStudio and check out the folder associated with the project.
- You should see the PDF file for the plot, the .csv file for the data, and the `.Rproj` file for the project itself.
- Double-click the `.Rproj` file to reopen the project and pick up where you left off! Everything you need should be ready to go.
## Quarto documents and R Scripts
We have worked with .qmd scripts during Methods Camp. [Quarto](https://quarto.org/) is a very flexible format that allows code, math, and text. People use it to make reports (PDF or HTML), presentations, websites, etc. You can create a Quarto document from RStudio using `File > New File > Quarto Document`, and then compile it to its final form using the "Render" button.
You should also be aware of regular R scripts, with a .R extension. They can be created in RStudio using `File > New File > R Script`. They just allow code: to add comments, you need to preface them by the pound sign (`#`).
## Other software resources
### Overleaf
::: {style="float: right; position: relative; top: 0px; padding: 30px;"}
{width="250"}
:::
- [Overleaf](https://www.overleaf.com/) is a collaborative cloud-based LaTeX editor designed for writing, editing, and publishing documents.
- LaTeX is a software used for typesetting technical documents. It is used widely in our discipline for the preparation for manuscripts to journals and other publishing venues.
- UT Austin actually provides free access to Overleaf Professional to graduate students using your UT email. (The Professional accounts allows more collaborators on projects and other goodies.)
::: callout-note
## Exercise
Create an Overleaf Professional account using your UT email address. You can do so [here](https://www.overleaf.com/edu/utexas).
:::
::: callout-important
$$
\hat{\beta} = (X'X)^{-1}X'Y
$$
LaTeX is actually the markup language that the math in Quarto and this website! If you are curious about general syntax and commands, you can access [our repository](https://github.com/methodscamp/methodscamp.github.io) at any time to get a closer look.
:::
### Zotero
::: {style="float: right; position: relative; top: 0px; padding: 30px;"}
{width="200"}
:::
- Zotero is an open-source reference manager used to store, manage, and cite bibliographic references, such as books and articles.
- When it is time to write, you can insert your sources directly into your paper as in-text citations via a word processor plugin, which generates a bibliography in your style of choice (e.g., APA). It works with Word, Google Docs, Overleaf, and RStudio.
- This can save a lot of time, especially when you have to change citation styles for submission to another journal.
- You can download the software for free [here](https://www.zotero.org/).
::: callout-note
Zotero is one of many other reference managers out there. Alternatives include Mendeley and EndNote, among others. You should choose whatever option best suits your needs.
:::
::: callout-warning
### Consume AI wisely!
* GPT can help with programming, but you must have domain knowledge.
* Interactions with ChatGPT are not exactly repeatable.
* GPT can help with expediting search from Google or Stack Overflow for troubleshooting, but it is not always correct.
* Read GPT’s explanation carefully to make sure it does what you want. It is a tool to help you learn, not to do the work for you!
* **Try to type out the generated code yourself, do NOT copy and paste**
* In your problem sets, always acknowledge that you have consulted AI for support.
* When errors occur, copy the error messages and paste them into GPT for troubleshooting.
* You can continue with follow-up instructions to improve the results.
* In case of a catch-22 situation, use your domain expertise.
:::
## Methods at UT
### Required methods courses
- Scope and Methods of Political Science
- Statistics I (Statistics/linear regression)
- Statistics II (Linear regression and more)
- Statistics III (Maximum likelihood estimation)
+ Only required if your major field is methods
### Other methods courses
- **Statistics / Econometrics / Machine Learning:**
- Causal Inference
- Bayesian Statistics
- Math Methods for Political Analysis
- Time Series and Panel Data
- Panel and Multilevel Analysis
- Network Analysis
- Machine Learning in Political Science
- Making Big Data
- **Formal Theory**
- Intro to Formal Political Analysis
- Formal Political Analysis II
- Formal Theories of International Relations
- **Everything else**
- Conceptualization and Measurement
- Experimental Methods in Political Science
- Qualitative Methods
- Seminar in Field Experiments
### Other departments at UT
You can also take courses through the Economics, Business (IROM), Sociology, Mathematics, or Statistics (SDS) departments.
- [M.S. in Statistics](https://stat.utexas.edu/academics/master-science-statistics)
- Software and Topic Short Courses at SDS (see their [Events](https://stat.utexas.edu/events) page): R, Python, Stata, etc.
### Methods Fellow
The Methods Fellow is a grad student who serves as a Methods TA for all other UT Gov grad students.
- Holds office hours
- Hosts a Methods Co-Working Hour
- Organizes workshops
### Methods summer programs
- [ICPSR](https://www.icpsr.umich.edu/web/pages/) (Inter-university Consortium for Political and Social Research)
- Ann Arbor, Michigan
- [IQMR](https://www.maxwell.syr.edu/research/center-for-qualitative-and-multi-method-inquiry/institute-for-qualitative-multi-method-research) (Institute for Qualitative and Multi-Method Research)
- Syracuse, NY
- [EITM](https://eitminstitute.org/) (Empirical Implications of Theoretical Models)
- Various locations
### More methods camps!
- [UT Methods Camp Website](https://methodscamp.github.io/)
+ Check out the PDF download!
- [Harvard Math Prefresher](https://iqss.github.io/prefresher/)
- [Northwestern Math Camp (2022)](https://github.com/NUpolisci/NU-math-camp?tab=readme-ov-file)
- [Duke Math Camp (2019)](https://people.duke.edu/~das76/Math_Camp_Info_2019.pdf)
+ Make sure to follow the links for the videos, etc.