> For the complete documentation index, see [llms.txt](https://ttezcan.gitbook.io/lectures/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://ttezcan.gitbook.io/lectures/all-lectures-and-labs/r-lab/lab-resources/all-r-script-files.md).

# All R script files

### All R Script files

{% hint style="danger" %}
If you open an R script into RStudio software and the script appears to be blank ➜&#x20;

On RStudio go to File ➜ Reopen with encoding ➜ Choose UTF-8
{% endhint %}

After creating "RStudio labs" project, **do** **not** create a "New Project" again. Instead, you will always click the existing <mark style="color:green;">**"RStudio Labs"**</mark> project throughout the course.

<figure><img src="https://1373704161-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FFj6bxTviGJMBga1Kc5Yc%2Fuploads%2Fd36kUEnZ7vasT5NBkbpc%2Fss_2025-01-15%2006.41.17.png?alt=media&amp;token=41bf1d6e-b295-4b16-9e82-d5afdcbc2625" alt="" width="563"><figcaption></figcaption></figure>

## Setup R script file

* [Installing the packages](https://drive.google.com/file/d/1dSgvAslE39sRxC_E08aHIffPipT9um8U/view?usp=sharing)

## Lecture R script files

* [Introduction to RStudio](https://drive.google.com/file/d/1q-dd3TMfDi7mLMkr-UcdmAYhi71y0r5A/view?usp=sharing)
* [Introduction to scripting](https://drive.google.com/file/d/1ksWH9huWbEYaCsdgToB97rkiw4UPQmf1/view?usp=sharing)
* [Descriptive statistics](https://drive.google.com/file/d/1qIHculVRo3WjqhQc5W3bYjGJ6iL4F0xR/view?usp=sharing)
* [Recoding](https://drive.google.com/file/d/1SP0UVJM2YxTt-0DIszBmDNg82R0zjxPO/view?usp=sharing)
* [Computing](https://drive.google.com/file/d/1VYeQ6ts2fjYeTrN_fMxW-6yGDn5c2wt1/view?usp=sharing)
* [Chi-square](https://drive.google.com/file/d/1CjOawdrardp48XweOo1ALyZ4Hnl9RYaP/view?usp=sharing)
* [Sampling](https://drive.google.com/file/d/1DsmU1KFkjlHTkeJrVGc47IWS0vQ5OC9Z/view?usp=sharing)
* [T-test](https://drive.google.com/file/d/1-MALgYPrMhTOMJuSlvI782b09JSrhp0C/view?usp=sharing)
* [Visualization](https://drive.google.com/file/d/1L1tOtO6DigVmWPvrjGgdYK_zd6-piBUb/view?usp=sharing)
* [Correlation](https://drive.google.com/file/d/1fzydcKVHKVhEp-E3TVSSs0rdpXDQiKWO/view?usp=sharing)
* [Linear regressio](https://drive.google.com/file/d/1pB0o81aUJpBetvYpmmj2SE0QPgwpJQ51/view?usp=sharing)[n basics](https://drive.google.com/file/d/1pB0o81aUJpBetvYpmmj2SE0QPgwpJQ51/view?usp=sharing)
* [Dummy variables](https://drive.google.com/file/d/1Q151VBvC3s0SG1R8P9Yb_0xGSku_8hkj/view?usp=sharing)
* [Logistic regression](https://drive.google.com/file/d/1qC4Rt2CXs6quJEtTtZxkhV27xHXWUJkD/view?usp=sharing)
* [Modeling exercises](https://drive.google.com/open?id=1_hwhZ5Ayd9IYCtthpHfrS9MddEnHGrCg\&usp=drive_fs)
* [Regression assumptions and diagnostics](https://drive.google.com/open?id=1aVjJH18rv5qKdgTuA34ey95WDY8axAuQ\&usp=drive_fs)

## Other files

* [Regression examples](https://drive.google.com/file/d/16A0u7mj-b0mXKNTKsodCmYWF1h1YvwrB/view?usp=sharing)
* [ESS data](https://drive.google.com/file/d/180417fazglgdwbYqFUHPy_sf0enYMYfW/view?usp=sharing)
* [GSS 2022 data](https://drive.google.com/file/d/11olzs5qua2SGHhDo0_fqi4rj7InAL2Bx/view?usp=sharing)
