Publications by Kareena del Rosario

Person Perception: Building the two-level crossed model

07.02.2024

# load in our example data rm_df <- read.csv("/Users/kareenadelrosario/Downloads/DyadicLongitudinal_ExampleDataset_RM3.csv") Dataset overview 482 stranger dyads interacted during four weekly guided conversations. People reported on their intellectual humility (IH) at three time points: pre (before the first conversation), post (after the last conv...

5461 sym 4 img

Person Perception 1: Two-Level Models in SPSS & R

28.01.2024

In this exercise, we are going to replicate the SPSS MIXED analysis in R. Load libraries library(haven) library(dplyr) library(nlme) Load SPSS data file dyad_df <- read_sav("sample data_two_level.sav") Let’s first run this analysis using linear regression (ignoring nonindependence). lm_mod <- lm(awish ~ sloppy_roommateC + first_similarNC + gender...

1404 sym 4 img

Introduction to R

24.01.2024

The RMarkdown file can be downloaded here: http://github.com/kareena-delrosario/regression_rcode Our introduction to R will be divided into 3 different subsections (orienting yourself to R, data manipulation, data visualization) Overview of Section 1 1. Different R Platforms 2. R Grammar 3. Installing and Loading Libraries 4. Using Functions 5. Im...

1896 sym Python (6968 sym/43 pcs) 2 img

Data Manipulation in R

24.01.2024

Level 2: Data Manipulation 1. Introduction to basic data manipulation (mutate, select, filter, summarize) 2. Applying dplyr to real data 3. Intermediate data manipulation (change var class, lapply, composite scores, conditional mutate) 4. Restructuring datasets (wide to long, long to wide) 5. Writing your own functions 6. Using correlations to insp...

4793 sym Python (9715 sym/55 pcs) 5 img 3 tbl

Data Visualization in R

24.01.2024

Level 3: Data Visualization 1. Intro to the layers of ggplot (data, aes, geom) 2. Changing the aesthetics (shape, color, size, fill, alpha) 3. Scatterplots 4. Histograms 5. Boxplots 6. Bar Graphs 7. Line Graphs BONUS: Animated Graphs Data Visualization Exam and festival datasets are from: https://studysites.sagepub.com/dsur/study/articles.htm lib...

1747 sym 28 img