Publications by Hunter B. Sturgill
Week 1 Intro
#install.packages("modelsummary") RStudio Intro If you’re new to R, follow the online ModernDrive chapter https://moderndive.netlify.app/1-getting-started.html Take notes here in R Markdown Four Panes: File Pane Environment Pane Console Editor pane Using functions are important I need to get better at this. Recommended Options Tools --> Glo...
3162 sym R (2904 sym/19 pcs) 5 img 1 tbl
week_2_homework_HR
Aknowledgment: This work was adapted from the Gelman and Hill 2006 Book. Citation: Gelman, A., & Hill, J. (2006). Data analysis using regression and multilevel/hierarchical models. Cambridge university press. Install the ARM package for running regression Chapter 2 Exersize Questions 1 A test is graded from 0 to 50, with an average score of 35 an...
2910 sym Python (3195 sym/40 pcs) 2 img
Week 1 - 213
Acknowledgment: This activity was adapted from the r4ds. https://r4ds.hadley.nz/data-visualize.html#creating-a-ggplot Always start by loading necessary packages! #install.packages("tidyverse") #install.packages("palmerpenguins") #install.packages("ggplot2") #install.packages("ggthemes") library(tidyverse) ## ── Attaching core tidyverse packag...
4070 sym R (4092 sym/27 pcs) 8 img
R Bootcamp
What is statistics? - The field of statistics: the practice and study of collecting and analyzing data. - A summary statistic: a fact about or summary of some data Types of Statistics - Descriptive statistics: describe and summarize data - Inferential statistics: Use a sample of data to make inferences about a larger population Types of Data - Nu...
4780 sym R (7772 sym/34 pcs) 1 img
LeBron Data Practice
Set working directory ————————————————— Set up your environment. We will be using the psych package If you haven’t installed it, how do you install it? How do you load your library? library(psych) Load in your data, give it a name ————————————— There are a lot of conventions you can us...
1685 sym R (50586 sym/37 pcs) 3 img
Problem Set 1
library(psych) #Reading in the data set named "summary_stats_LSS1.csv" which is the data Dr. Franchak gave me from a previous study. #I named the data PS1_data which stands for problem set 1. PS1_data<-read.csv("summary_stats_LSS1.csv") #The variable I am analyzing is walk_eyex_std, which is the standard deviation of eye exploration in the walk...
23 sym R (2694 sym/18 pcs) 2 img
week 2 - scales and central limit theorem
Making Scales Sometimes, we collect data that we need to make into scales, such as multiple questions that get at the same construct. When this happens, we want to combine the data in some way, maybe through summation or maybe through averaging. We’ll go over both here. Importing Data But first, let’s bring in our data. We’re working with ...
5795 sym R (6330 sym/37 pcs) 5 img
Problem Set 2
PS2_data <- read.csv("ProbSet2Data.csv") df <- PS2_data[c(1:58),c(1,16)] Changing ID variable into a factor df$id <- as.factor(df$id) levels(df$id) <- list(Male = "2", Female = "1") table(df$id) ## ## Male Female ## 29 29 df$search_eyex_mean <- as.factor(df$search_eyex_mean) levels(df$search_eyex_mean) <- list(HighMovement = "2", ...
262 sym
lab week 5
Codebook We have a lot of columns, here’s what they are: PARTY: Political Party demFav: Average favorability towards Democrats repFav: Average favorability towards Republicans Q2A_A: Donald Trump, R Q2A_B: Bill Weld, R Q2A_C: Nancy Pelosi, D Q2A_D: Alexandria Ocasio-Cortez, D Q2A_E: Mitch McConnell, R Q2A_F: Barack Obama, D Q2B_A: Joe Biden, D ...
8168 sym R (7999 sym/52 pcs) 4 img
Lab week 6
All analyses were conducted in R (v4.2.2; R Core Team, 2022) using the “psych” (vX.X; Author, year). “effectsize” (version, author, year). Set up Today we’re going to talk about effect sizes and power Let’s first set up our environment. Don’t forget to set your working directory You will need to install two new packages today: pwr ...
4785 sym R (4844 sym/41 pcs)