📖
lectures
  • All lectures and labs
    • Guidelines and rubrics
      • Lecture reflections
      • Office hours
      • Where are the readings, slides, and lecture videos?
      • How to submit an assignment
      • How to move a file in Google Drive
      • How to rename a file and folder in Google Drive
      • Highlighting and commenting assignment instructions
      • How to collaborate on the same Google document
      • How to embed an image in Canvas
      • Pomodoro technique
      • Which apps to download
      • How to use zbib.org for citations?
      • How to determine peer-reviewed journal articles?
      • Citation chaining procedure
      • ResearchRabbit: Literature discovery engine
      • Selective literature review
      • How to take a screenshot
      • Canvas notification settings
      • How to use Google Calendar
      • Presentation templates and samples
      • Qualitative (Content analysis) DRAFT research memo guideline and rubric
      • Qualitative (Content analysis) FINAL research memo guideline and rubric
      • How to use VPN (for Windows and macOS)
      • Letter of recommendation requests
    • Lectures
      • Social research
        • Social research: why and how
        • The ABC's of a research project
        • Introduction to datasets
        • Research ethics
        • Literature review I: Annual review articles and citations
        • Literature review II: citation chaining and discovery engine
        • Introduction to survey methodology
        • Probability sampling methods
        • Non-probability sampling methods
        • Asking questions
        • Qualitative interviewing
        • Self-completion questionnaires
        • Focus groups
        • Mass and social media research
        • Data collection in mass media research
        • Content analysis and coding with Google Docs
        • Effective presentation techniques
        • Concepts and indicators
        • Presentations 1
        • Presentations 2
        • Presentations 3
        • Presentations 4
        • Presentations 5
      • Immigration
        • Why do people migrate?
        • Who does migrate?
        • Introduction to assimilation theories
        • New and segmented assimilation theory
        • Group conflict
        • Group contact
        • Children of immigrants
        • Social identity of immigrants
        • Migrant networks
        • Intergenerational relationships
        • Grandparental involvement
        • Return migration
        • The sociology of border
        • Immigration and crime
        • Marriage migration and religiosity
        • The construction of ethnicity
      • Sociological thinking
        • The sociological eye
        • Foundations of social theory
        • Scientific sociology: social facts
        • Social structure
        • What is critical thinking?
        • Claims and evidence
        • Everyday arguments
        • Analyzing arguments
        • Network-based factors influencing critical thinking
        • Common errors of perspective in sociological thinking
        • Misinformation and disinformation
        • Propaganda
        • Conspiracy theories and sociology
        • Cognitive influences on critical thinking
        • Ethical reasoning
        • Deviance I: The role of deviance
        • Deviance II: Explaining deviance
        • Social class and inequality
        • Sociology of poverty
        • Sociological perspectives on substance abuse
    • R lab
      • Lab lectures
        • Introduction RStudio
        • Introduction to scripting
        • Descriptive statistics
        • Recoding
        • Computing
        • Chi-square
        • Sampling
        • T-test
        • Visualization
        • Correlation
        • Linear regression basics
        • Dummy variables
        • Logistic regression
        • Modeling exercises
        • Regression assumptions and diagnostics
      • Lab resources
        • How to create RStudio Cloud account and installing all the packages
        • How to open and use R script files in RStudio Cloud
        • Flashcards
        • All R script files
        • Variables in GSS
        • Code templates
        • Interpretation templates
        • How to use model codes
        • Data terminologies
        • Is my p-value less than 0.05?
        • Codebooks
        • How to use RStudio on a computer without using a browser
    • SPSS lab
      • SPSS lab resources
        • All syntax and data files
        • GSS codebook
        • Code templates
        • How to use VPN (for Windows and macOS) and use SPSS
        • How to download PSPP
      • SPSS lab lectures
        • Introduction to SPSS
        • Entering data
        • Recoding and computing I
        • Recoding and computing II
        • Probability sampling
        • Correlation
        • Chi-square
        • T-Test
        • Simple linear regression
        • Multiple linear regression
        • Multiple linear regression exercises
        • Logistic regression
        • Multiple linear and logistic regression exercises
    • NVIVO lab
      • NVIVO lab files
        • All NVIVO cheat files
        • NVIVO data
      • NVIVO lab lectures
        • Introduction to NVIVO
        • Coding basics I
        • Getting familiar with data
        • Getting familiar with own data
        • Coding basics II: initial, axial and focused coding
        • Cases, attributes, values, and visualization
        • Relationships
        • Framework matrices
        • Mind maps, concept maps, project maps
        • NVIVO file for final paper
    • Welcoming pages
      • Welcome to SBS321
      • Welcome to SOC399
      • Welcome to SOC120
Powered by GitBook
On this page
  • Reading
  • R Script file
  • Slides
  • Lab assignment
  • Video
  • Sample lab assignment video
  • Lecture reflection
  1. All lectures and labs
  2. R lab
  3. Lab lectures

Modeling exercises

Last updated 13 days ago

Reading

R Script file

R script file will be available after the lecture break

1) Click below if you're in:

Slides

Lab assignment

Lab assignment will be available after the lecture break.

There will be a survey link in the file. Do not take the survey if you didn't attend the lecture.

  1. Click here:

Video

We'll collect our own data during the lecture and run logistic regression analyses, therefore there's no lecture video. Refer to logistic regression lecture video.

Sample lab assignment video

We'll collect our own data during the lecture and run logistic regression analyses, therefore there's no sample lab assignment video. Refer to logistic regression sample lab assignment google doc and video.

Lecture reflection

lab assignment
Lecture reflection template
Understanding logistic regression analysis
SBS321: script_modelingexercises1.R
Downloadable slides here