Lin517/A&S500 - 001: Quantitative Investigations in the Social Sciences

Author

Josef Fruehwald

Published

January 2023

Syllabus pdf

1 Key info

Where and When

Where: Patterson Office Tower Rm.OB9
When: Tuesdays & Thursdays, 11:00 - 12:15

Instructor

Dr. Josef Fruehwald
email: josef.fruehwald@uky.edu
office hours: Mondays, 15:00 - 16:00
office location: POT 1671

2 Course at a Glance

What you’ll learn:

data organization & visualization, R

What you’ll do:

write a progress blog, identify R resources, implement analyses in R

What you’ll need:

a computing device with a physical keyboard

The final-est deadline

Thursday, May 4

Add to Calendar

Attendance Policy

Attendance is crucial for successful completion of the course, but there are no grade penalties.

Late Work Policy

2 day penalty free grace period on all assignments, 5% flat penalty afterwards. See Late Submissions and Re-submissions


3 Course Description

This won't be a course on statistical modelling. Rather, we'll be focusing on the work you have to do before and after doing any statistics, including

  • Basics of R programming

  • Finding, organizing, and visualizing your data

  • Carrying out exploratory data analysis

  • Interacting with the broader programming ecosystem, like using git for version control

  • Effectively communicating about your data with authoring tool like Quarto and polished graphics.


4 Learning Outcomes

After attending class meetings and completion of the coursework, students should be able to

  • identify appropriate quantitative analysis procedures for diverse data sets.

  • organize data sets tidily

  • re-organize untidy data sets in R

  • generate exploratory data visualizations

  • fine tune data visualizations


5 Course Materials

Our materials will be drawn from the free and openly licensed materials written for R. We’ll draw most heavily from


6 Course Technology

R/RStudio

We’ll be learning how to implement our analyses in the R programming language, specifically using the RStudio IDE. You can install and configure RStudio on your own computer that you bring to class. You will also have access to RStudio Workbench hosted by the College of Arts & Sciences at https://rstudio.as.uky.edu/. You can log in with your LinkBlue credentials.

Quarto/Quarto Notebooks

Quarto is a program built into RStudio that takes source documents written in Markdown and R, and renders them into various output document formats, including html and pdf. This program is included in RStudio, and won’t require additional download or installation.

Git/Github

Git is a “Version Control System” that lets you keep track of changes on software projects. Github is a service that allows online hosting of Git projects. You will need to create a free a Github account for the course.

Canvas

Canvas will be used to make course announcements, and to set & submit assignments.


7 Communications

I will respond to emails in a timely manner during normal working hours, but it may take longer if you email me after 5pm on weekdays, or any time during the weekend.


8 Course Schedule

The topics and readings listed here are the tentative schedule for the course. We may find, in the room, that some topics will take longer than initially scheduled.

Open Blocks Plan

I’ve laid out Blocks 1 through 3 rather prescriptively, as they reflect what I think the core components of “knowing R” require. However, Blocks 4 and 5 are more open ended, as I hope the interests of people in the course might guide what we work on. Possible topics we could cover include and are not limited to

  • Interactive, or animated data visualizations

  • Exploring ggplot2 extensions for even greater control of figures

  • Working with and analyzing textual data

  • Working with and visualizing geographic data

  • Writing R packages

  • Building interactive dashboards

In order to plan for these blocks, we’ll devote some time the week before the block starts discussing the topic we’ll pursue. After identifying the topic we’re going to explore, the block schedule will follow the following pattern:

  1. Resource Scanning: A process of searching for relevant R packages for the topic, identifying how they interact with broader R ecosystem, evaluating whether they are actively maintained, and searching for accessible documentation, texts, or how-tos on their use.
  2. Initial Implementation: A process of straight fowardly re-running code examples from the available resources.
  3. Fine-Tuning: A process of adjusting the code from the initial implementation to fit into our preferred workflows, and reapplying them to new data.
  4. Report backs: Reflecting on what went well with the blocks, what was most challenging, and what aspects could be pushed even further.

Block 1: Onboarding

Weeks:

1

Dates:

Jan 10 - 12

Topics
  • Setting Up R, RStudio, Github

  • Writing a Quarto Document

Resources:

Block 2: Data Visualization Basics

Weeks

2 - 4

Dates

Jan 17 - Feb 2

Topics
  • Data visualization best practices

  • Making graphs with ggplot2

  • Colors, Fonts

  • File Formats

Resources

Block 3: Data (re)Organization

Weeks

5-7

Dates

Feb 7 - 23

Topics:
  • Tidy data

  • Tidying data

  • Transforming and summarizing data

  • Finding data & APIs

Resources

Block 4

Weeks

8 - 10

Schedule
  1. Resource Scanning
  2. Initial Implementation
  3. Fine-tuning
  4. Report backs

Block 5

Weeks

11 - 13

Schedule
  1. Resource Scanning
  2. Initial Implementation
  3. Fine-tuning
  4. Report backs

Block 6: Wrapup

Weeks

14 - 15

9 Course Evaluation

Grade Components

Progress blog 35%
Block Reports 30%
Final Project 25%
Engagement 10%

Grading Scale

A >= 90
B 80 to 89
C 70 to 79
D 60 to 69
E <= 59

Assignment Submission

Assignments will be set on canvas, and you will submit notification of the assignment’s completion through canvas. The content of the assignment itself may be contained elsewhere (e.g. the A&S RStudio server, or a Github repository).\

Progress Blog

An end-of-week Quarto blog post about what you learned that week, including sample code if relevant.

Block Reports

At the end of each block, a final cohesive report implementing what was learned. These will be due during the week immediately after we complete a block.

Final Project

A final capstone project for the course. This could be a report, in a similar format to the block reports, or some other agreed upon format (e.g. a dashboard, an R package, etc.)

Engagement

Inspired by Kirby Conrod’s approach to Participation Grades

This portion of the grade is a way for me to give you credit for informal/unstructured collaborative work that you do. Participation and collaboration are strong predictors of success and learning retention, so please make an effort to find a way that works well for you to participate and engage with your colleagues.

A well known process for solving programming problems is “Rubber Duck Debugging.” It works by describing how each step of a program is supposed to work to another person or, as the name suggests, a rubber duck. Often the solution to the problem or the typo causing the bug jumps out at you during the process. Having a study buddy or study group could be really helpful if only for this purpose.


10 Late Submissions and Re-submissions

Every graded piece of work will have a due date. After a 2 day grace period, there will be a single, flat 5% deduction from late work, whenever it is submitted between the due date and the The Final-est Deadline

Midterm Grades

Add to Calendar

I will submit midterm grades on March 13, 2023, at the end of the midterm grading window. Any unsubmitted assignments that were due before March 13 will be given a grade of 0, BUT you can still submit those assignments after March 13 for their inclusion in the final grade.

The Final-est Deadline

Add to Calendar

The final-est deadline by which to submit any material to be graded is May 4, 2023. I have to set this hard deadline in order to have enough time to conclude final grading in time for the university’s final grade submission deadline.


11 Group Work and Code Sources

It is acceptable to collaborate and confer with other students in the course. Any collaboration should be indicated in the assignment submission. You may also refer to code sources from elsewhere on the internet, as long as you also document the source, and explain what the code does. You might not receive credit for code which has been copied wholesale from another online source or from another student without credit or documentation.

Large Language Model (a.k.a. AI) Generated Code

There are a number of services that will generate code based on natural language queries. Some words of warning:

Fluent BS

Large Language Models have been found to generate code that looks superficially correct, but often does not actually run properly, or do what the human asker wanted. Being able to successfully identify where or why code does not work correctly is not always straight forward. This issue led the Q&A site StackOverflow to ban submissions generated by LLMs, stating

[…] because GPT is good enough to convince users of the site that the answer holds merit, signals the community typically use to determine the legitimacy of their peers’ contributions frequently fail to detect severe issues with GPT-generated answers.

Explain what the code does

As stated above, you should provide credit to any external sources you turned to for code help, and explain what the resulting code does.


12 Attendance and Engagement

You are expected to attend all scheduled course meetings. It would be helpful, but not necessary, if you let me know in advance if you are going to miss any lectures.

If you feel sick in any way, including but not limited to the well-known symptoms of COVID-19 (loss of taste or smell, a new and persistent cough, high fever, etc), do not come to class. There are other mechanisms for demonstrating engagement than attending lectures.

I will also expect all of us in the course to treat each other with respect and civility in all aspects of the course, including

  • In the audio of a Zoom meeting

  • In the text chat of a Zoom meeting

  • On any course discussion boards or other forums.


13 Academic Conduct

UK Senate rules on academic offences: https://www.uky.edu/universitysenate/ao

Appropriating someone else’s work and portraying it as your own is cheating. Collaborating with someone and portraying that work as solely your own is cheating. Obtaining answers to homework assignments or exams from previous semesters is cheating. Using an internet search engine to look up a question and reporting that answer as your own is cheating. Falsifying data or experimental results is cheating. If you are unsure about whether a specific action is cheating, you may check with me.

The minimum penalty for a first offense is a zero on the assignment on which the offense occurred. If the offense is considered severe or if the student has other academic offenses on their record, more serious penalties, up to suspension from the University may be imposed.

When students submit work purporting to be their own, but which in any way borrows ideas, organization, wording or anything else from another source without appropriate acknowledgement of the fact, the students are guilty of plagiarism. Plagiarism includes reproducing someone else’s work, whether it be a published article, chapter of a book, a paper from a friend or some file, or something similar to this. Plagiarism also includes the practice of employing or allowing another person to alter or revise the work which a student submits as their own, whoever that other person may be.

Students may discuss assignments among themselves or with an instructor or tutor, but when the actual work is done, it must be done by the student, and the student alone. When a student’s assignment involves research in outside sources of information, the student must carefully acknowledge exactly what, where and how they employed them. If the words of someone else are used, the student must put quotation marks around the passage in question and add an appropriate indication of its origin. Making simple changes while leaving the organization, content and phraseology intact is plagiaristic. However, nothing in these Rules shall apply to those ideas which are so generally and freely circulated as to be a part of the public domain (University Senate Rules Section 6.3.1).


14 University Academic Policy Statements

Link to University Senate Academic Policy Statements https://www.uky.edu/universitysenate/acadpolicy

Excused Absences and Acceptable Excuses

Excused Absences: Senate Rules 5.2.5.2.1 defines the following as acceptable reasons for excused absences: (a) significant illness, (b) death of a family member, (c) trips for members of student organizations sponsored by an educational unit, trips for University classes, and trips for participation in intercollegiate athletic events, (d) major religious holidays, (e) interviews for graduate/professional school or full-time employment post-graduation, and (f) other circumstances found to fit “reasonable cause for nonattendance” by the instructor of record. Students should notify the professor of absences prior to class when possible.

If a course syllabus requires specific interactions (e.g., with the instructor or other students), in situations where a student’s total EXCUSED absences exceed 1/5 (or 20%) of the required interactions for the course, the student shall have the right to request and receive a “W,” or the Instructor of Record may award an “I” for the course if the student declines a “W.” (Senate Rules 5.2.5.2.3.1)

Religious Observances

Religious Observances: Students anticipating an absence for a major religious holiday are responsible for notifying the instructor in writing of anticipated absences due to their observance of such holidays. Senate Rules 5.2.5.2.1(4) requires faculty to include any notification requirements within the syllabus. If no requirement is specified, two weeks prior to the absence is reasonable and should not be given any later. Information regarding major religious holidays may be obtained through the Ombud’s websiteor calling 859-257-3737.

Verification of Absences

Verification of Absences:Students may be asked to verify their absences in order for them to be considered excused. Senate Rule 5.2.5.2.1 states that faculty have the right to request appropriate verification when students claim an excused absence due to: significant illness; death in the household, trips for classes, trips sponsored by an educational unit and trips for participation related to intercollegiate athletic events; and interviews for full-time job opportunities after graduation and interviews for graduate and professional school. (Appropriate notification of absences due to University-related trips is required prior to the absence when feasible and in no case more than one week after the absence.)

Make-Up Work

Make-Up Work: Students missing any graded work due to an excused absence are responsible: for informing the Instructor of Record about their excused absence within one week following the period of the excused absence (except where prior notification is required); and for making up the missed work. The instructor must give the student an opportunity to make up the work and/or the exams missed due to the excused absence, and shall do so, if feasible, during the semester in which the absence occurred. The instructor shall provide the student with an opportunity to make up the graded work and may not simply calculate the student’s grade on the basis of the other course requirements, unless the student agrees in writing. According to SR 5.2.5.2.2, if a student adds a class after the first day of classes and misses graded work, the instructor must provide the student with an opportunity to make up any graded work.

Excused Absences for Military Duties

Excused Absences for Military Duties: If a student is required to be absent for one-fifth or less of the required course interactions (e.g., class meetings) due to military duties, the following procedure (per SR 5.2.5.2.3.2) shall apply:

  1. Once a student is aware of a call to duty, the student shall provide a copy of the military orders to the Director of the Veterans Resource Center. The student shall also provide the Director with a list of his/her courses and instructors.

  2. The Director will verify the orders with the appropriate military authority, and on behalf of the military student, notify each Instructor of Record via Department Letterhead as to the known extent of the absence.

  3. The Instructor of Record shall not penalize the student’s absence in any way and shall provide accommodations and timeframes so that the student can make up missed assignments, quizzes, and tests in a mutually agreed upon manner.

Unexcused Absences

Unexcused Absences: If an attendance/interaction policy is not stated in the course syllabus or the policy does not include a penalty to the student, the instructor cannot penalize a student for any unexcused absences. (SR 5.2.5.2.3.3)

Prep Week and Reading Days

Prep Week and Reading Days: Per Senate Rules 5.2.5.6, the last week of instruction of a regular semester is termed “Prep Week.” This phrase also refers to the last three days of instruction of the summer session and winter intersession. The Prep Week rule applies to ALL courses taught in the fall semester, spring semester, and summer session, including those taught by distance learning or in a format that has been compressed into less than one semester or session. This rule does not apply to courses in professional programs in colleges that have University Senate approval to have their own calendar.

Make-up exams and quizzes are allowed during Prep Week. In cases of “Take Home” final examinations, students shall not be required to return the completed examination before the regularly scheduled examination period for that course. No written examinations, including final examinations, may be scheduled during the Prep Week. No quizzes may be given during Prep Week. No project/lab practicals/paper/presentation deadlines or oral/listening examinations may fall during the Prep Week unless it was scheduled in the syllabus AND the course has no final examination (or assignment that acts as a final examination) scheduled during finals week. (A course with a lab component may schedule the lab practical of the course during Prep Week if the lab portion does not also require a Final Examination during finals week.) Class participation and attendance grades are permitted during Prep Week. The Senate Rules permit continuing into Prep Week regularly assigned graded homework that was announced in the class syllabus.

For fall and spring semester, the Thursday and Friday of Prep Week are study days (i.e. “Reading Days”). There cannot be any required “interactions” on a Reading Day. “Interactions” include participation in an in-class or online discussion, attendance at a guest lecture, or uploading an assignment. See Senate Rules 9.1 for a more complete description of required interactions.

Accommodations Due to Disability

Accommodations Due to Disability: In accordance with federal law, if you have a documented disability that requires academic accommodations, please inform your instructor as soon as possible during scheduled office hours. In order to receive accommodations in a course, you must provide your instructor with a Letter of Accommodation from the Disability Resource Center (DRC). The DRC coordinates campus disability services available to students with disabilities. It is located on the corner of Rose Street and Huguelet Drive in the Multidisciplinary Science Building, Suite 407. You can reach them via phone at (859) 257-2754, via email (drc@uky.edu) or visit their website (uky.edu/DisabilityResourceCenter). DRC accommodations are not retroactive and should therefore be established with the DRC as early in the semester as is feasible.

Non-Discrimination Statement and Title IX Information

Non-discrimination and Title IX policy: In accordance with federal law, UK is committed to providing a safe learning, living, and working environment for all members of the University community. The University maintains a comprehensive program which protects all members from discrimination, harassment, and sexual misconduct. For complete information about UK’s prohibition on discrimination and harassment on aspects such as race, color, ethnic origin, national origin, creed, religion, political belief, sex, and sexual orientation, please see the electronic version of UK’s Administrative Regulation 6:1 (“Policy on Discrimination and Harassment”) (https://www.uky.edu/regs/ar6-1). In accordance with Title IX of the Education Amendments of 1972, the University prohibits discrimination and harassment on the basis of sex in academics, employment, and all of its programs and activities. Sexual misconduct is a form of sexual harassment in which one act is severe enough to create a hostile environment based on sex and is prohibited between members of the University community and shall not be tolerated. For more details, please see the electronic version of Administrative Regulations 6:2 (“Policy and Procedures for Addressing and Resolving Allegations of Sexual Harassment Under Title IX and Other Forms of Sexual Misconduct”) (https://www.uky.edu/regs/sites/www.uky.edu.regs/files/files/ar/ar_6.2-in...). Complaints regarding violations of University policies on discrimination, harassment, and sexual misconduct are handled by the Office of Institutional Equity and Equal Opportunity (Institutional Equity), which is located in 13 Main Building and can be reached by phone at (859) 257-8927. You can also visit Institutional Equity’s website (https://www.uky.edu/eeo).

Faculty members are obligated to forward any report made by a student related to discrimination, harassment, and sexual misconduct to the Office of Institutional Equity. Students can confidentially report alleged incidences through the Violence Intervention and Prevention Center (https://www.uky.edu/vipcenter), Counseling Center (https://www.uky.edu/counselingcenter), or University Health Service (https://ukhealthcare.uky.edu/university-health-service/student-health).

Reports of discrimination, harassment, or sexual misconduct may be made via the Institutional Equity’s website (https://www.uky.edu/eeo); at that site, click on “Make a Report” on the left-hand side of the page.

Regular and Substantive Interaction

Regular and Substantive Interaction: All credit-bearing courses must support regular and substantive interaction (RSI) between the students and the instructor, regardless of the course’s delivery mode (e.g., in-person, hybrid, or online). Courses satisfy this requirement when course participants meet regularly as prescribed in SR 10.6, and the Instructor of Record substantively interacts with students in at least two of the following ways: provides direct instruction; assesses students’ learning; provides information or responds to students’ questions; and facilitates student discussions. Some exceptions allowed as per SACSCOC. For further information about the RSI requirement, see the Compliance Resources link on the Teaching, Learning and Academic Innovation Compliance page.

15 Diversity, Equity and Inclusion

The University of Kentucky is committed to our core values of diversity and inclusion, mutual respect and human dignity, and a sense of community (Governing Regulations XIV). We acknowledge and respect the seen and unseen diverse identities and experiences of all members of the university community (https://www.uky.edu/regs/gr14). These identities include but are not limited to those based on race, ethnicity, gender identity and expressions, ideas and perspectives, religious and cultural beliefs, sexual orientation, national origin, age, ability, and socioeconomic status. We are committed to equity and justice and providing a learning and engaging community in which every member is engaged, heard, and valued.

We strive to rectify and change behavior that is inconsistent with our principles and commitment to diversity, equity, and inclusion. If students encounter such behavior in a course, they are encouraged to speak with the instructor of record and/or the Office of Institutional Equity and Equal Opportunity. Students may also contact a faculty member within the department, program director, the director of undergraduate or graduate studies, the department chair, any college administrator, or the dean. All of these individuals are mandatory reporters under University policies.

https://www.uky.edu/universitysenate/syllabus-dei